Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Disable graphic or CSS for item on WebDataMenu
posted

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?

  • 18204
    Suggested Answer
    Offline posted

    Hi bartond31,

     

    Thank you for posting on our forums!

    After looking into this, there does not appear to be a property among the WebDataMenu or its items that specifies a DisabledCssClass.  I did find a property to set your own CSS class on an item and this can be used with some code to set the style when the item is disabled.

    I've attached a sample that demonstrates how I went about setting this up in C# and javascript.

    If you have any further questions with this, please let me know.

    WDM_DisableCSS.zip