Hi,
1) In UltraWebTree DemandLoad fired after Page_Load on clicking "populating symbol" of the node. However, for WebDataTree NodePopulate fires before Page_Load (I was surpised, but I used breakpoints several times to be sure), and that's inconvenient, because the order is crucial for me. Any help?
2)In Nodes of UltraWebTree AddRange method took Collection as an Argument, so it was possible to add all the nodes of the one tree to the other one correctly. Is there any way to do that for webDataTree?
Will
foreach (DataTreeNode n in firstTree.Nodes)
secondTree.Nodes.Add(n);
give the same effect?
Hi Andrey,
If you want to use load on demand feature of WebDataTree I would suggest you to check the online samples - https://es.infragistics.com/samples/aspnet/data-tree/manual-load-on-demand, https://es.infragistics.com/samples/aspnet/data-tree/load-on-demand and the documentation - http://help.infragistics.com/Help/Doc/ASPNET/2012.1/CLR4.0/html/WebDataTree_Load_on_demand.html.
And yes, the suggested by you code should work to add nodes to another tree. However, the WebDataTree also have the AddRange method to add an array of nodes.
Please do not hesitate to ask if you have any questions.
Here is an example of using the AddRange method:
DataTreeNode[] dtnc = new DataTreeNode[WebDataTree1.Nodes.Count]; foreach (DataTreeNode n in WebDataTree1.Nodes) { dtnc[n.Index] = n; } WebDataTree2.Nodes.AddRange(dtnc);
Hope this helps.
Thanks a lot, I solved the adding issue. However, as for loading - I read these two examples before, but I use not standard binding, but some kind of user SessionManager. So I need some code in Page_Load executed BEFORE node_populate handler. Now I have to call page_load from node_populate, but because of it page_load is called twice (of course i use some kind of check for most code in page_load not to run second time, but still it's a workaround and a bad one). Is there any better way?
Hello Andrey,
i could catch the init of some controls in the Page_Init event. It fires before Page_Load and is the place for the special bindings. Look at http://support.microsoft.com/kb/305141
Patric
Hello,
Thanls a lot, Patric, it works. There is one more issue already discussed in several threads, but nothing seems helpful - scrolling into view. As far as I know there is now only client-side scrolling into view for WebDataTree. And returning from the other page I restore my tree from backup tree like this:
this.wdtTargets.Nodes.Clear();
foreach (DataTreeNode n in t.Nodes)
this.wdtTargets.Nodes.Add(n);
wdtTargets and t, as you've understood, WebDataTree's.
And upon this, I need to scroll SelectedNode into view. Is that possible?
Thanks, that's a pity. However in version 11.1.20111.1006 animation kind of worked as we discussed earlier... However I guess it's because the postback wasn't firing until the mouse button was released.
It seems that this is not possible.
Hello Nikolay,
Thanks, now it works with AutoPostBack off OK, and plus the problem with addEventListener() javaScript Error in IE9 (http://es.infragistics.com/community/forums/p/73735/373027.aspx#373027) is gone, too. However, the same behaviour I reproduced in the same sample by switching AutoPostBack flag for clicking to Async. And with On there is of course no animation, but I assume it's a right behaviour. By the way, is there any way to have simultaneously this really nice animation and AutoPostBack on? It seems no, because AutoPostBack causes, as it should, post back.
You can find the latest SR in our website by going to Account – Keys & Downloads and selecting your product name. Then go to Service Releases tab – there you will find the download link.
Thanks for the piece of advice and reproducing the issue. However, then I tried to modify the installation and left Install with lastest service release checked it kept saying Unable to download updates - but the internet connection is OK, the installation pocess has been run under administrator, I allowed it through firewall, the process isn't block by any antivirus etc. Then I downloaded and installed archived release from here https://es.infragistics.com/support/archived-downloads Download NetAdvantage for ASP.NET 2011 Volume 1 , but it contained the same version 11.1.20111.1006. Where can I get 11.1.20111.2178 version?