﻿<?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 - WebTreeView - Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</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>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Thu, 21 Apr 2016 02:05:32 GMT</pubDate><dc:creator>erwinintersoft</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hello Shailendra,&lt;/p&gt;&lt;p&gt;Thank you for the information. That solution should be useful for future reference. Sorry if I couldn't help much on the issue.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Erwin Sanders&lt;/p&gt;</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Wed, 20 Apr 2016 18:20:47 GMT</pubDate><dc:creator>shailendra.senger</dc:creator><category>WebTreeView</category><description>Hi Erwin,
You used FlyPostback, my application can't used that as I need to display node's information on controls (textbox, radiobuttons etc.) inside tabs. This solution again wont work for me. 
However I figured out my self by calling below code, on window onload and clientside node expanstion event. 

var selectedNode = ISGetObject('DesignerTreeView').GetSelectedNode();
selectedNode.GetElement().scrollIntoView()

That worked for me. 
Thanks,
Shailendra Singh</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Mon, 18 Apr 2016 02:38:00 GMT</pubDate><dc:creator>erwinintersoft</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Thank you for the additional information about postback. I managed to modify the function to suit your needs. Using ISPosLib.getTopW3C, it's possible to get the node position value for the scrollTop property. I also substract it with the WebTreeView frame element itself in case you aren't placing the WebTreeView on top of the page.&lt;/p&gt;&lt;p&gt;I attached the modified sample for you.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Erwin Sanders&lt;/p&gt;</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Thu, 14 Apr 2016 15:24:31 GMT</pubDate><dc:creator>shailendra.senger</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Thanks for your reply. I just modified your sample with runtime binding of treeview and enabling selected node postback as per my my application requirement. Same solution doesnt work.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Thu, 14 Apr 2016 01:22:35 GMT</pubDate><dc:creator>erwinintersoft</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;That's odd, it works everytime on my end though. I'm using WebTreeView 2 and had it tested on Chrome and IE 11. Have you modified the function to suit your needs? Anyway, I'm sending you a webform showing you how I implement the function itself.&lt;/p&gt;&lt;p&gt;Had you find any trouble with my sample, please let me know.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Erwin Sanders&lt;/p&gt;</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Wed, 13 Apr 2016 15:27:43 GMT</pubDate><dc:creator>shailendra.senger</dc:creator><category>WebTreeView</category><description>Hi Erwin,
Thanks for your response. Above solution does not works always. If a node is already expanded and then search it, the scroll bar is not being set properly and not making the searched node visible. It works randomly.
</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Wed, 13 Apr 2016 04:45:39 GMT</pubDate><dc:creator>erwinintersoft</dc:creator><category>WebTreeView</category><description>&lt;p&gt;Hello Shailendra,&lt;/p&gt;&lt;p&gt;Here's a snippet code to fill your request. In this code, it's also possible to expand only the searched node if the WebTreeView is in collapsed mode.&lt;/p&gt;&lt;pre&gt;function btn_Click() {
    var txt = document.getElementById("TextBox1").value;
    var treeview = ISGetObject("WebTreeView1");
    var frameelement = treeview.GetFrameElement();

    //use this to expand searched node's parents
    var node = treeview.FindNodesByText(txt)[0];
    var parent = node.Parent;
    while (parent &amp;amp;&amp;amp; parent.Expand) {
        parent.Expand();
        parent = parent.Parent;
    }

    //this is for showing the searched node
    node.Select();
    frameelement.children[0].scrollTop = ISPosLib.getTopW3C(node.GetElement());
}&lt;/pre&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Erwin Sanders&lt;/p&gt;</description></item><item><title>Automatic positioning of Scrollbar when a node searched</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/Automatic-positioning-of-Scrollbar-when-a-node-searched/</link><pubDate>Tue, 12 Apr 2016 15:12:31 GMT</pubDate><dc:creator>shailendra.senger</dc:creator><category>WebTreeView</category><description>&lt;p&gt;I have a treeview having more than 2000 nodes, so when I search a node(that resides quite below in treeview or all the nodes expanded), using Find functionality, It become selected but didn't come up to treeview visible area. I mean, you have to manually scroll down up to found node.&lt;/p&gt;&lt;p&gt;Is there a way to bring the searched node up or can set the scroll bar position infront of searched node.&lt;/p&gt;&lt;p&gt;Waiting for your response.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&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;br&gt;&lt;/p&gt;</description></item></channel></rss>