﻿<?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 - TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</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>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Wed, 09 Dec 2009 13:35:20 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;This behavior is designed in WebTreeView for performance concern. WebTreeView will not populate the Nodes object recusively during onload. It will populate the Nodes object during certain event such as expand. Or you could manually trigger it using Get("Nodes") or GetArrayNodes. &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you. As a workarond, I call the GetArrayNodes method to force the loading of the Nodes collection. This allows me to use the Nodes collection like other TreeView implementations. The documentation should be updated to reflect that this collection isn't loaded for performance reasons.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Fri, 04 Dec 2009 03:49:18 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;This behavior is designed in WebTreeView for performance concern. WebTreeView will not populate the Nodes object recusively during onload. It will populate the Nodes object during certain event such as expand. Or you could manually trigger it using Get("Nodes") or GetArrayNodes. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Thu, 03 Dec 2009 10:17:21 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;In order to get the correct length, please use the&lt;/p&gt;&lt;pre&gt;ISGetObject("treePortfolioNav").Nodes[0].Get("Nodes").length&lt;/pre&gt;&lt;p&gt;The GetArrayNodes function will load all the collection to the JS object. You could manually build the collection using the Get("Nodes") function. &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The only reason why the GetArrayNodes is used is to ensure that the node.Nodes collection is properly populated.  Is there a timeline when this will be fixed? It's much cleaner to be able to use the node.Nodes collection instead of calling various methods.&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Wed, 02 Dec 2009 22:22:51 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In order to get the correct length, please use the&lt;/p&gt;&lt;pre&gt;ISGetObject("treePortfolioNav").Nodes[0].Get("Nodes").length&lt;/pre&gt;&lt;p&gt;The GetArrayNodes function will load all the collection to the JS object. You could manually build the collection using the Get("Nodes") function. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Wed, 02 Dec 2009 14:46:31 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'calibri','sans-serif'; mso-bidi-font-family: 'lucida sans unicode'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;I found another bug. Similar to the page I modified above to illustrate another bug but&amp;nbsp;this TreeView does not load on demand. Using the TreeView's Nodes property, only the first level exist. For example:&amp;nbsp;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'calibri','sans-serif'; mso-bidi-font-family: 'lucida sans unicode'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;ISGetObject("treePortfolioNav").Nodes .length (3 is returned; Correct value) 
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'calibri','sans-serif'; mso-bidi-font-family: 'lucida sans unicode'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;ISGetObject("treePortfolioNav").Nodes[0].Nodes.length (0 is returned; Incorrect value)
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'calibri','sans-serif'; mso-bidi-font-family: 'lucida sans unicode'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;ISGetObject("treePortfolioNav").GetArrayNodes() (38 is returned;)
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'calibri','sans-serif'; mso-bidi-font-family: 'lucida sans unicode'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;ISGetObject("treePortfolioNav").Nodes[0].Nodes.length&amp;nbsp; (2 is now returned; Correct value)
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'calibri','sans-serif'; mso-bidi-font-family: 'lucida sans unicode'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;Why would GetArrayNodes cause the rest of the collection to "load"?
&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Wed, 02 Dec 2009 14:43:28 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;EDIT: Removed&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Thu, 22 Oct 2009 23:38:55 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could check the Nodes.IsPopulate property to ensure whether the TreeView has completed the loading process. If it has not set the timeout to wait for the TreeView to complete its process. Here is the snippet:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function WebTreeView1_OnInitialize(ctrlId) {      AlertNodesAfterComplete();     
}
function AlertNodesAfterComplete() {
    var treeview = ISGetObject("WebTreeView1");
    if (treeview.Nodes.IsPopulate) {
        WebTreeView_GetNodes();
        WebTreeView_GetArrayNodes();
    }
    else {
        setTimeout(function() { AlertNodesAfterComplete(); }, 10);
    }
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Thu, 22 Oct 2009 09:25:23 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;Is this the only option? It seems like there would be a chance where 500ms isn't enough and the logic would fail.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Is there some sort of property/event that can be handled to determine when the WebTreeView is done with its initialization and the correct data would be returned?&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Thu, 22 Oct 2009 04:12:33 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;It seems you will need to use timeout function to wait for the WebTreeView to finish the initializing process to retrieve the correct value. In the attached modified sample, I use 500ms timeout to make sure the WebTreeView finish the initializing process before reporting the nodes length.&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Wed, 21 Oct 2009 10:03:24 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;Using the provided sample, Client_FundamentalAPI.aspx, in the WebTreeView sample. The GetArrayNodes return the correct information of the node in the tree view. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Did this issue also occurs in the provided sample?&lt;/div&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I've modified the Client_FundamentalAPI.aspx file with a very simple example that shows the bugs with the above mentioned methods.&lt;/p&gt;</description></item><item><title>TreeView's client-side method bugs</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/TreeView-Client-Side-Method-Bugs/</link><pubDate>Tue, 20 Oct 2009 11:23:10 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;The Intersoft's TreeView GetArrayNodes method contains a bug where each node is listed in the list twice.&amp;nbsp; For example, a TreeView with 22 nodes returns 44 nodes from GetArrayNodes method.&lt;/span&gt;&lt;/span&gt; 

&lt;p&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt;What should the&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #008000"&gt;&lt;span style="font-size: 13px; color: #008000"&gt; Intersoft's TreeView GetNodes method return? It's not listed within the 2009 R1 documentation but it exists within the online example. I get the root node twice which appears to be a bug. I'd assume all nodes would be return. Even if it returns the first node in the heirarchy, it should not be listed twice.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>