Hi there,
When creating a RadMenu have root item and 2 child items, by clicking on an item child how to get the name of the root item?
When creating a RadMenu have root item and 2 child items, by clicking on an item child how to get the name of the root item?
follows an example
function onClicking(sender, eventArgs)
{
var menu = $find("<%= RadMenu1.ClientID %>");
var items = menu.get_items();
alert("item: " + items.getItem(0).get_text());
}
function onClicking(sender, eventArgs)
{
var menu = $find("<%= RadMenu1.ClientID %>");
var items = menu.get_items();
alert("item: " + items.getItem(0).get_text());
}
thus,
if I have more than 1 root item, I can not get their name, how to get
the name of the root item when you have more than 1?
I want that when you click on an child item, I get the name of the root item that child item.
I want that when you click on an child item, I get the name of the root item that child item.