Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
HELP : Performance Problems exchanging nodes
posted

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);

parentNode.removeChild(sourcePosition + 1);