I have created a context menu for my Tree View, and one of the items is an edit command. With javascript, I am able to toggle the startEdit() command, and the node will go into edit mode. However, almost instantly, the node will exit edit mode.
javascript:
ASPX:
Does anyone have any idea what the problem could be? This code is near cut-and-paste from the Prometheus examples.
Edit: It's also probably worth of note that the RadTreeView is wrapped inside a RadPane, which is inside a RadSplitter, inside of an UpdatePanel ^^;
javascript:
| <script type="text/javascript"> | |
| function onClientContextMenuItemClicked(sender, args) | |
| { | |
| var menuItem = args.get_menuItem(); | |
| var treeNode = args.get_node(); | |
| switch(menuItem.get_value()) | |
| { | |
| case "Edit": | |
| treeNode.get_treeView()._startEdit(treeNode); | |
| break; | |
| } | |
| } | |
| </script> |
ASPX:
| <telerik:RadTreeView OnClientContextMenuItemClicked="onClientContextMenuItemClicked" ...> | |
| <ContextMenus> | |
| <telerik:RadTreeViewContextMenu ...> | |
| <Items> | |
| <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Value="Edit" Text="Edit Node"> | |
| <GroupSettings ExpandDirection="Auto" Flow="Vertical" /> | |
| </telerik:RadMenuItem> | |
| </Items> |
Does anyone have any idea what the problem could be? This code is near cut-and-paste from the Prometheus examples.
Edit: It's also probably worth of note that the RadTreeView is wrapped inside a RadPane, which is inside a RadSplitter, inside of an UpdatePanel ^^;