Hi,
I create (server-side) a context menu for a RadTree and set the menu item clicked event:
This is the menu item I add:
How can I access the item's value (="delete") in the client-side javascript event?
It's quite easy to get the menu item from the event args and also the caption, but how do I get the value?
Or is the value only supposed for server-side usage and I have to add the value as an attribute to the menu item?
Thanks for your help!
I create (server-side) a context menu for a RadTree and set the menu item clicked event:
radTreeView.OnClientContextMenuItemClicked =
"OnCatalogTreeItemClicked"
;
This is the menu item I add:
RadTreeViewContextMenu contextMenu =
new
RadTreeViewContextMenu();
contextMenu.ClickToOpen =
true
;
RadMenuItem item =
new
RadMenuItem(
"Delete this node"
);
item.Value =
"delete"
;
contextMenu.Items.Add(item);
radTreeView.ContextMenus.Add(contextMenu);
How can I access the item's value (="delete") in the client-side javascript event?
It's quite easy to get the menu item from the event args and also the caption, but how do I get the value?
Or is the value only supposed for server-side usage and I have to add the value as an attribute to the menu item?
Thanks for your help!