Im trying to implement a swap function that allows me to exchange nodes in a ultrawebtree, but when i try to use the insertChild and removeChild, it takes too long.
Is there another way to implement swapping in the UltraWebTree o what can i do to improve the performance.
Thanks in advance
// code snippet (Infragistics 7.1 .net 1.x)
var sourceClone = parentNode.insertChild(targetPosition, textSource, '');
var targetClone = parentNode.insertChild(sourcePosition, textTarget, '');
parentNode.removeChild(sourcePosition + 1);
I am having the same problem with the remove() method. (Infragistics 7.2 with .NET 2.x)
sourceNode.remove();
It takes some time to complete. However there are times where it takes forever. I waited about 1-2 minutes and it was still not done. The node is fairly same too. The node itself and 4 children. The children don't have childrens.
So is there a way to optimize or is there an alternative way/method of deleting nodes?
Thank you,
Sugnesh
Apparently, the problem is due to the use of images to draw the tree when you set this property :
=> myTree.WebTreeTarget = Infragistics.WebUI.UltraWebNavigator.WebTreeTarget.HierarchicalTree or Infragistics.WebUI.UltraWebNavigator.WebTreeTarget.ClassicTree ;
Because, if you remove this property the remove() function is faster than when you keep this properties, but the tree looks like hell.