Login

  • Sign in with Intersoft Social ID
  • Sign in with Intersoft ID (Developer Network)
  • Sign in with Google ID
  • Sign in with Open ID. Click for more options.
Intersoft Social ID
Password
Intersoft Latest Learn More

Latest Development Blogs

Blog RSS
Loading
Retrieving News

Forum                   Topics  Post

WebTreeView NodeSelect issue

4 replies. Last post: January 12, 2011 12:14 AM by Frank Bruce
Rate this topic:
Average rating: 3 (1 vote)
Tags :
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 1:55 PM.