Hello,
Regarding to this sample ..\Live Demos\Menu\Examples\Programming\ClientSideAPI
I'm not able to get the clientID out of a menuItem.
Its always undefined.
What am I doing wrong?
Regarding to this sample ..\Live Demos\Menu\Examples\Programming\ClientSideAPI
I'm not able to get the clientID out of a menuItem.
Its always undefined.
What am I doing wrong?
| function OpenItem() |
| { |
| var menu = $find("RadMenu1"); |
| var text = $get("openTextBox").value; |
| var item = menu.findItemByText(text); |
| if (item) { |
| alert(item.ID); // <----------------------------------------------------------- |
| item.open(); |
| } |
| else |
| { |
| alert("Item with text '" + text + "' not found."); |
| } |
| } |