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

Disable RadMenu From jQuery

1 Answer 45 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 20 Jun 2011, 11:11 PM
All,

Forgive me for my ignorance here, but I have exhausted all other avenues. Hopefully someone can point me in the right direction.

I am trying to write jQuery that will allow me to access a RadMenu object from client-side and call the disable function on that object. The issue is, I'm writing the code to be generic. Given that, I'll only know the name of the containing <div>, not the actual RadMenu ID. Can this be accomplished, or am I barking up the wrong tree? Below is the code that I am currently attempting to use, but firebug shows an error of "$("[id$=" + target + "]").find('[id$="rmMenu"]').disable is not a function". The "target" is the string representing the div id before asp.net gets hold of it and prepends the id with the asp.net identifier string.

Thanks in advance...

$("[id$=" + target + "]").find('[id$="rmMenu"]').disable();

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 22 Jun 2011, 08:10 AM
Hello Bill,

You may try to change your ".disable();" to ".get(0).disabled=true;".

Hope this works for you.

Kind regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Menu
Asked by
Bill
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or