This is a migrated thread and some comments may be shown as answers.

disable menu - clientside.

6 Answers 96 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Hessner
Top achievements
Rank 2
Hessner asked on 22 May 2009, 09:51 PM
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?

6 Answers, 1 is accepted

Sort by
0
PureCode
Top achievements
Rank 2
answered on 23 May 2009, 12:08 PM
Hi,

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

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:

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
0
Hessner
Top achievements
Rank 2
answered on 23 May 2009, 04:50 PM
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?

0
PureCode
Top achievements
Rank 2
answered on 23 May 2009, 06:58 PM
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
0
Paul
Telerik team
answered on 25 May 2009, 07:59 AM
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.
0
Hessner
Top achievements
Rank 2
answered on 28 May 2009, 08:57 AM
Is this fix included in RadControls for ASP.NET AJAX 2009.1 527?
0
Accepted
T. Tsonev
Telerik team
answered on 29 May 2009, 01:37 PM
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.
Tags
Menu
Asked by
Hessner
Top achievements
Rank 2
Answers by
PureCode
Top achievements
Rank 2
Hessner
Top achievements
Rank 2
Paul
Telerik team
T. Tsonev
Telerik team
Share this question
or