Hi, I have been trying to implement the following:
I have a treeview on my page which has a contextmenu bound to it.
If I clicks on the contextmenu item (say--edit) I would like the window pop up with the nodeId and some other data . I have seen the example and the demos but they are all done on the client side. My problem is I am trying to implement it from the server side.
The following is the code so far. Any assistance in the right direction would be great.
I have a treeview on my page which has a contextmenu bound to it.
If I clicks on the contextmenu item (say--edit) I would like the window pop up with the nodeId and some other data . I have seen the example and the demos but they are all done on the client side. My problem is I am trying to implement it from the server side.
The following is the code so far. Any assistance in the right direction would be great.
| <telerik:RadTreeView ID="tvwUserWorkout" runat="server" |
| Skin="Telerik" OnNodeCreated="nodeCreated" |
| OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick"> |
| <ContextMenus> |
| <telerik:RadTreeViewContextMenu ID="MyContextMenu" runat="server" Skin="Web20"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| <Items> |
| <telerik:RadMenuItem runat="server" Text="Completed" ImageUrl="~/Resources/Images/ui/cd_delete.png"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Edit" ImageUrl="~/Resources/Images/ui/cd_delete.png"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadTreeViewContextMenu> |
| </ContextMenus> |
| </telerik:RadTreeView> |
| protected void RadTreeView1_ContextMenuItemClick(object sender, Telerik.Web.UI.RadTreeViewContextMenuEventArgs e) |
| { |
| if (tvwUserWorkout.SelectedNodes.Count >= 1) |
| { |
| if (e.MenuItem.Text == "Edit") |
| { |
| //fire up the dialog window |
| RadWindow win = new RadWindow(); |
| } |
| } |
| } |