﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Lounge - How to automaticaly select Newly added node when Autopostback setting for NodeAdd also true</title><link>http://www.intersoftsolutions.com/Community/Lounge/How-to-automaticaly-select-Newly-added-node-when-Autopostback-setting-for-NodeAdd-also-true/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to automaticaly select Newly added node when Autopostback setting for NodeAdd also true</title><link>http://www.intersoftsolutions.com/Community/Lounge/How-to-automaticaly-select-Newly-added-node-when-Autopostback-setting-for-NodeAdd-also-true/</link><pubDate>Mon, 07 Mar 2016 09:40:57 GMT</pubDate><dc:creator>erwinintersoft</dc:creator><category>WebTreeView</category><category>reeview</category><description>&lt;p&gt;Hi Shailendra,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;Anyway, I made a simple sample regarding your issue. There are two ways to do this:&lt;br&gt;1. Client Side: Call the Select() method from ClientSideEvents property via JavaScript. (See example below)&lt;/p&gt;&lt;pre&gt;//webtreeview control&lt;/pre&gt;&lt;pre&gt;&amp;lt;ISWebTreeView:WebTreeView runat="server" AllowAddNode="True"&amp;gt;&lt;/pre&gt;&lt;pre&gt;    &amp;lt;ClientSideEvents OnNodeAdd="Node_Add" /&amp;gt;&lt;/pre&gt;&lt;pre&gt;    &amp;lt;AutoPostBackSettings OnNodeAdd="true" /&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/ISWebTreeView:WebTreeView&amp;gt;&lt;/pre&gt;&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;&lt;pre&gt;//javascript&lt;/pre&gt;&lt;pre&gt;function Node_Add(a, newNode, c) {    var treeView = ISGetObject("WebTreeView1");
    newNode.Select();
}&lt;/pre&gt;&lt;p&gt;2. Server Side: Call the Select() method from WebTreeView's&amp;nbsp;OnNodeAdd property. (See example below)&lt;/p&gt;&lt;pre&gt;//webtreeview control&lt;/pre&gt;&lt;pre&gt;&amp;lt;ISWebTreeView:WebTreeView OnNodeAdd="WebTreeView1_NodeAdd" AllowAddNode="True"&amp;gt;
    ...
    &amp;lt;AutoPostBackSettings OnNodeAdd="true" /&amp;gt;
&amp;lt;/ISWebTreeView:WebTreeView&amp;gt;&lt;/pre&gt;&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;&lt;pre&gt;//code behind&lt;/pre&gt;&lt;pre&gt;protected void WebTreeView1_NodeAdd(object sender, ISNet.WebUI.WebTreeView.WebTreeViewNodeEventArgs e) {
    e.Node.Select();
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;You could download the sample from the attachment below, feel free to evaluate. Hope this helps.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Erwin Sanders&lt;/p&gt;</description></item><item><title>How to automaticaly select Newly added node when Autopostback setting for NodeAdd also true</title><link>http://www.intersoftsolutions.com/Community/Lounge/How-to-automaticaly-select-Newly-added-node-when-Autopostback-setting-for-NodeAdd-also-true/</link><pubDate>Mon, 29 Feb 2016 19:41:05 GMT</pubDate><dc:creator>shailendra.senger</dc:creator><category>WebTreeView</category><category>reeview</category><description>&lt;p&gt;I have requirement to automaticaly select the newly added node, As I also need server side processing so I made Autopostback seetings-OnNodeAdd = true.&lt;/p&gt;&lt;p&gt;I tried calling Select() function of new node &amp;nbsp;'&lt;span style="font-size: 10pt;"&gt;NewNode.Select();' but it is not working.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Please let me know how to automaticaly select newly added node.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Shailendra Singh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>