Hi all,
How do I change the graphic or even set a specific CSS class for disabled items on a webdatamenu? If I set a button to be disabled, i can see the hover doesn't work and button cannot be clicked, that's fine, but we need to give or users a visual indication of which buttons are disabled, so like the ultrawebtoolbar used to have it would be nice to have a .DIsabledImage property on each .Item, how do we achieve the same effect in the WebDataMenu please?
Michael,
How do I change the Font, font-size, backcolor, forecolor etc. for DataMenuItem. I tried the following cssStyle, but did not work.
<style type="text/css">
.wdm-format .igdm_MenuItemVerticalRoot
{
font-size:20px;
border:solid 1px Transparent;
padding:6px 30px 6px 12px;
_border: 0px;
color: white;
}
</style>
<ig:WebDataMenu id="mnuMain" BorderStyle="None"
Font-Size="XX-Small" Font-Names="Verdana" BorderWidth="0px"
BorderColor="#663300" Height="24px" runat="server"
Font-Overline="True" Font-Bold="True" ForeColor= "White" BackColor ="#663300" CssClass="igdm_MenuItemVerticalRoot" >
<Items>
<ig:DataMenuItem Text="Reports" cssClass ="wdm-format" >
<GroupSettings Orientation="Horizontal" />
</ig:DataMenuItem>
<ig:DataMenuItem Enabled="False" Text="Shipping" Visible="False">
<ig:DataMenuItem Enabled="False" Text="Tracking" Visible="False">
<ig:DataMenuItem Text="Institutional Orders">
</Items>
</ig:WebDataMenu>
Thanks for your help.
Hi bartond31,
Please let me know if I can provide any further assistance with this issue.
It is possible to enable and disable the items with their set_enabled function. Passing the first argument of true will enable the item, and passing false will disable it. After a quick look, this property doesn't seem to appear in our documentation and the function does exist on the items.
Please see below for an example of this function:
menu.getItems().getItem(0).set_enabled(false);
If you need anything else, feel free to let me know.
Yes please, can you tell me how do you enable + disable webdatamenu items from javascript? in the ultrawebtoolbar we could just call setEnabled, but I see no way in doing this to items in WebDataMenu?
Thanks
Please let me know if you need further assistance with this issue and I'll be glad to help you.