locked
Help with menu item RRS feed

  • Question

  •  
    Hi,

    Can anybody tell me how to dinamically enable or disable a menu Item depending on a row selection in an infragistics ultrawebgrid?

    I'm trying Menu.Enabled = false, and the first time my program loads the page, it works, but, when a given event occurs (a row selection by example), I'm using Menu.Enabled = true and THE MENU ITEM IS STILL DISABLED.  I'm trying .Visible instead .Enabled and the same efect occurs.

    Thanks a lot
    Saturday, February 21, 2009 12:55 AM

Answers

  • Are you trying to enable it via the clientside and not posting back to the server?

    I think that enabled=false does not render the HTML to the page. View the page source to confirm that.

    You might have to do it with CSS solution:

    yourHtmlElement.Attributes ["class"] = "hidden";

    and have a CSS class that does something like

    .hidden{ display: none; }

    Than to show it you you can remove the CSS class.

    Eric
    Monday, February 23, 2009 2:50 PM

All replies

  • Are you trying to enable it via the clientside and not posting back to the server?

    I think that enabled=false does not render the HTML to the page. View the page source to confirm that.

    You might have to do it with CSS solution:

    yourHtmlElement.Attributes ["class"] = "hidden";

    and have a CSS class that does something like

    .hidden{ display: none; }

    Than to show it you you can remove the CSS class.

    Eric
    Monday, February 23, 2009 2:50 PM
  • Thank's buddy

    Monday, February 23, 2009 6:00 PM