disable menu - clientside.

7 posts, 1 answers
  1. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 22 May 2009 Link to this post

    Hi,

    When using:

    var menu = $find("<%= radMenu1.ClientID %>");  
    menu.disable(); 

    the menu will "gray" out - and thats fine. And I expect that clicking are disabled (it's not)

    I can still click the menu(top level), href are active and OnClientItemClicking event ARE NOT fired. 

    How do I disable the menu and prevent any clicking?
  2. PureCode
    PureCode avatar
    97 posts
    Member since:
    Jul 2006

    Posted 23 May 2009 Link to this post

    Hi,

    It's been a while but i think you might also have to:

    1 menu.disableEvents(); 

    Instead of the 'menu.disabled()' with or without my suggestion above, there is also the following function, which may be what you are looking for:

    1 menu.set_enabled(false); 

    If neither works, you could always disable the menu as you stated in your post, then iterate the root items and disable each of those separately as well. Pain in the neck of course, but should definitely disable the entire thing.




    Regards,

    Mike
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 23 May 2009 Link to this post

    Have tried all your suggestions - but the href are still active on all root/menu items.

    I can hide them, but do not want to do that - just want to disable(gray out menu) and not be able to click any items.

    Maybe Telerik can supply a fix?

  5. PureCode
    PureCode avatar
    97 posts
    Member since:
    Jul 2006

    Posted 23 May 2009 Link to this post

    Hey,

    Well, sounds, indeed, like another client-side bug in that case.

    Seems to run quite rampant through-out the RadMenu client API these bugs.

    Regards,

    Mike
  6. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 25 May 2009 Link to this post

    Hi there,

    Thanks for the report.

    Actually, you're right and we admit this is a bug. I've forwarded your report to our dev team and the issue will be fixed in the next hotfix.

    Please excuse us for the temporary inconvenience.

    Regards,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 28 May 2009 Link to this post

    Is this fix included in RadControls for ASP.NET AJAX 2009.1 527?
  8. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 29 May 2009 Link to this post

    Hello,

    The bug is not resolved in the SP2, but we did manage to fix it today and the fix will be available in the next internal build (version 2009.1.529 and up). You can download it from your Client.NET accounts on Monday. Sorry for the inconvenience.

    Sincerely yours,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017