Hi
I have a tree-view control which populates the data from database, On that tree-view I also have a context menu Now I want to make viable off of one menu on the context menu if the node is last node (means no more child node). Given bellow the is rad tree:
<telerik:RadTreeView ID="RadTreeView1" runat="server" Width="90%" >
<DataBindings>
<telerik:RadTreeNodeBinding Expanded="True" />
</DataBindings>
<ContextMenus>
<telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
<Items>
<telerik:RadMenuItem Value="CreateNewTeam" Text="Create New Team" ImageUrl="../../../../image/RadControls/Grid/Skins/Default/SinglePlus.gif"></telerik:RadMenuItem>
<telerik:RadMenuItem Value="AddUserUnderThisTeam" Text="Add User" ImageUrl="../../../../image/RadControls/Grid/Skins/Default/Insert.gif"></telerik:RadMenuItem>
</Items>
</telerik:RadTreeViewContextMenu>
</ContextMenus>
</telerik:RadTreeView>
I want to disable AddUserUnderThisTeam if the node is the last node (no more child)
Can anyone help on this.
Regards
Santanu