WebTreeView NodeSelect issue

4 replies. Last post: January 12, 2011 12:14 AM by Frank Bruce
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Frank BruceMember

I want to get the node's value when I click the node.
I click node1,then click node2,I can get the two nodes's value.
But when I click  node1 again,I can not get anything,It seems that I can only click the treeview one time.It is so strange.  
Any one can help me?thanks!

 <ISWebTreeView:WebTreeView ID="Tree_left" runat="server" Height="365px" Width="156px"
   DataSourceID="XmlDataSource1" AutoGenerateDataBindings="True" ExpandedDepth="-1"   AllowMultipleSelect="false" OnInitializeNode="Tree_left_InitializeNode" >
 <ClientSideEvents OnNodeSelect="WebTreeView1_OnNodeSelect"  />
  <DataBindings>
   <ISWebTreeView:WebTreeViewNodeBinding DataMember="myPower" TextField="Text" ValueField="Link" />
    <ISWebTreeView:WebTreeViewNodeBinding DataMember="Root" TextField="Text" ValueField="Link" />
     <ISWebTreeView:WebTreeViewNodeBinding DataMember="child" TextField="Text" ValueField="Link" />
    </DataBindings> 
function WebTreeView1_OnNodeSelect(ctrlId, node) {
    var WebTreeView1 = ISGetObject(ctrlId);
    var selectedNode = WebTreeView1.GetSelectedNode();
    var url = selectedNode.Value;
    if (url != "") {
        alert(url);        
    }
    return true;
}
All times are GMT -5. The time now is 11:23 PM.
Previous Next