iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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; }
function WebTreeView1_OnNodeSelect(ctrlId, node) { var WebTreeView1 = ISGetObject(ctrlId); var selectedNode = WebTreeView1.GetSelectedNode(); var url = selectedNode.Value; if (url != "") { alert(url); } return true; }
Hello,
The issue doesn't occur on my end. When I click node 1, node 2 and the other nodes and go back to node 1, it still gets the value correctly.
I have attached a sample file for your reference.
To get and download the latest hotfix, you may run Update Manager which is located in [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET\WebUI.NET Framework 3.0\UpdateManager\ISNet.WebUI.UpdateManager.exe.
Hope this helps.
Thank you.
You can use node.Text to obtain the selected node in OnNodeSelect Client-side event.
The following code works on my end
function WebTreeView1_OnNodeSelect(controlId, node) { var WebTreeView1 = ISGetObject(controlId); var url = node.Text; if (url != "") alert(url); return true; }
I am sorry , I have used text but the problem has exists.The problem is: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.Can you test it and then tell me if you are success????(by the way,Maybe My treeview is not the latest(On Auguest),How can I download the latest hotfix?---Because I do not know where the Intersoft Update's download file is????)
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname