This is a migrated thread and some comments may be shown as answers.

Treeview

2 Answers 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Giri
Top achievements
Rank 1
Giri asked on 02 Sep 2008, 06:11 AM
In below coding i got the checkednodes text but how can i get the checkednodes value give an example


Protected Sub ShowCheckedNodes(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim message As String = String.Empty
    Dim nodeCollection As ArrayList =      RadTree1.CheckedNodes
    Dim node As RadTreeNode
    For Each node In nodeCollection
        message += node.FullPath
    Next node
    nodes.Text = message
End Sub

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Sep 2008, 11:27 AM
Hi,

Try the following code snippet to get the value of selected nodes.

JS:
<script type="text/javascript" language="javascript" > 
      function GetValue() 
      { 
           var treeView = $find("<%= RadTreeView1.ClientID%>"); 
           var node = treeView.get_selectedNode(); 
           if(node) 
            { 
               alert(node.get_value()); 
            } 
      } 
    </script> 


Thanks
Shinu.
0
Yana
Telerik team
answered on 02 Sep 2008, 12:31 PM
Hello,

You can use node.Value in the same way as node.FullPath.

Regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Giri
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Yana
Telerik team
Share this question
or