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 have requirement to automaticaly select the newly added node, As I also need server side processing so I made Autopostback seetings-OnNodeAdd = true.
I tried calling Select() function of new node 'NewNode.Select();' but it is not working.
Please let me know how to automaticaly select newly added node.
Regards,
Shailendra Singh
Hi Shailendra,
Apologize for the late reply. I found a way to select a node after adding it to WebTreeView while setting the AutoPostBack NodeAdd property to true. You were on the right track by using the Select() method, however I may need further information on how you use it.
Anyway, I made a simple sample regarding your issue. There are two ways to do this:1. Client Side: Call the Select() method from ClientSideEvents property via JavaScript. (See example below)
//webtreeview control
<ISWebTreeView:WebTreeView runat="server" AllowAddNode="True">
<ClientSideEvents OnNodeAdd="Node_Add" />
<AutoPostBackSettings OnNodeAdd="true" />
</ISWebTreeView:WebTreeView>
//javascript
function Node_Add(a, newNode, c) { var treeView = ISGetObject("WebTreeView1"); newNode.Select(); }
2. Server Side: Call the Select() method from WebTreeView's OnNodeAdd property. (See example below)
<ISWebTreeView:WebTreeView OnNodeAdd="WebTreeView1_NodeAdd" AllowAddNode="True"> ... <AutoPostBackSettings OnNodeAdd="true" /> </ISWebTreeView:WebTreeView>
//code behind
protected void WebTreeView1_NodeAdd(object sender, ISNet.WebUI.WebTreeView.WebTreeViewNodeEventArgs e) { e.Node.Select(); }
You could download the sample from the attachment below, feel free to evaluate. Hope this helps.
Best Regards,Erwin Sanders
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