Hi team,
I have a RadMenu setup as a Context menu ,i want to know how to set the text property dynamically.you already discussed this url http://www.telerik.com/community/forums/aspnet/menu/set-text-radmenuitem-client-side.aspx .Here they are given some solution.but it is not working.
Your code:
if i used that same code ,i got error like "items is undefined".How to solve that issue..
Then i need another one help from you,i want to bind the rad menu dynamically in client side jquery code.Before binding new menu item i need to clear all the old menu items.How i can do?i have tried all your samples...Please give the correct solution for this problem.
I have a RadMenu setup as a Context menu ,i want to know how to set the text property dynamically.you already discussed this url http://www.telerik.com/community/forums/aspnet/menu/set-text-radmenuitem-client-side.aspx .Here they are given some solution.but it is not working.
Your code:
var menu = <%= RadMenu1.ClientID %>; |
var element = menu.Items[0].TextElement; |
element.innerHTML = "new menu text"; |
menu.Show(e); |
if i used that same code ,i got error like "items is undefined".How to solve that issue..
Then i need another one help from you,i want to bind the rad menu dynamically in client side jquery code.Before binding new menu item i need to clear all the old menu items.How i can do?i have tried all your samples...Please give the correct solution for this problem.