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

Can we get child menu item by id rather than text.

2 Answers 64 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Dheeraj Khajuria
Top achievements
Rank 1
Dheeraj Khajuria asked on 25 Sep 2009, 09:27 AM
Hi,

We are adding child menu items at run time and the text is based on the User Language Preferences; so we can not use the FindItemByText method. Is there any client side method to get element by id so that we don't have to iterate through all the items for getting a particular item.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Sep 2009, 10:21 AM
Hi Dheeraj,

One suggestion would be adding value to the new item (which is chronological in manner ) when it is created, so that you can search the menuitem with the value using the findItemByValue() method. Checkout the following documentation for most important methods of RadMenu:
RadMenu and RadContextMenu objects

Thanks,
Princy.
0
Dheeraj Khajuria
Top achievements
Rank 1
answered on 25 Sep 2009, 11:55 AM
Thanks Princy,

It worked !!!
Tags
Menu
Asked by
Dheeraj Khajuria
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dheeraj Khajuria
Top achievements
Rank 1
Share this question
or