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?
Hello Andrey,
Thank you for the sample. I was able to reproduce the issue. It seems that even if the AutoPostBackFlags are off, clicking an item still causes a postback, which leads to skipping the expand/collapse animation. However, I tested the same sample with later version - 11.1.20111.2178 and the issue did not occur. So I would suggest you to upgrade your product to the latest service release available, where this issue is fixed.
Let me know if you have any further questions.
Hello Nikolay,
Here's the sample solution.
I could not reproduce the behavior you have described. Is it possible for you to attach a small sample, demonstrating the issue, in order to be able to investigate this further?
Thanks, you and this post http://es.infragistics.com/community/forums/t/57902.aspx helped. However the funny thing still is that if I add ItemClick client side handler (even an empty one), animation of webexplorerbar works in a strange way - if holding the mousebutton on the group name it collapses/expandes smoothly. If just click on it - it twitches and collapses/expandes practically without any effect. AutoPostBacks are set to Off.
Hello,
You can check if the clicked item is an ExplorerBarItem or a Group using its level. If it is 0 - this is an ExplorerBarGroup. Else - its an item. This is sample ItemClick client event handler:
function WebExplorerBar1_ItemClick(sender, eventArgs) { if (eventArgs.getExplorerBarItem()._node.get_level() == 0) { //Clicked item is a group } else { //Clicked item is ExplorerBarItem }}
There is no seperate events for item and group click. Here you can find more about client-side events of WebExplorerBar - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.1/CLR4.0/html/WebExplorerBar_ClientEvents.html.