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 Nikolay,
Thanks a lot, it works like magic - you made my day!
And this set_cancel sounds to be useful for my other issues... Once I asked if it's possible to handle group_click for webexplorerbar client side and item_click server side. Just I'd like to know, is there any client side analog of IsExplorerBarItem, IsExplorerBarGroup?
Hi Andrey,
A possible solution would be to cancel the client-side NodeClick event if it is raised by right mouse button (which I assume you are using to show your context menu). So if a user right clicks a node, the menu should be displayed and the postback cancelled:
function WebDataTree1_NodeClick(sender, eventArgs) { if (eventArgs.get_browserEvent().button == 2) { eventArgs.set_cancel(true); }}
Let me know if this helps.
Yes, and I use not iframes but framset and frames.
Thanks a lot! Scrolling works just fine. But I just posted about disappearing of context menu... And as for blinking of tree and iframes... Well, code is too complicated and I was not able to reproduce the issue, so I'll try to fix it myself. But disappearing of the context menu is reproducable. (See my previous post).