Hi,
I create a TreeView with this code:
<Nodes>
How can i get the selected node with javascript ?
I try this:
Thanks !
I create a TreeView with this code:
<
telerik:RadTreeView ID="rtvLineeBeni" Runat="server" OnNodeExpand="RTV_NodeExpand"
Font-Names="Arial" Font-Size="12pt" Font-Strikeout="False" Skin="WebBlue"
BorderColor="Gray" Height="390px" Width="748px" AllowNodeEditing="true"
OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
onnodeedit="rtvLineeBeni_NodeEdit" >
<Nodes>
<telerik:RadTreeNode Value="1" ImageUrl="~/Images/ImagesTree/Reparto.png"
AllowEdit="false" Text="Reparto" Expanded="true" ContextMenuID="MainContextMenuInsert" >
</telerik:RadTreeNode>
</Nodes>
</telerik:RadTreeView>
Then i populate it ON DEMAND(c# code)
How can i get the selected node with javascript ?
I try this:
var oId = document.getElementById('<%=rtvLineeBeni.ClientID %>').value
var oId = document.getElementById('<%=rtvLineeBeni.ClientID %>_SelectedNode').value
but it tells me that it's Undefined ...Thanks !