Hi I would like to move an already existing item (and its subtree) to another position in the tree. The drag and drop feature works fine, but I would like to know if I can also do it programmatically. I have tried the addAfter and addTo methods but they add a new item, instead of moving the one that I want. Here a code example of what I do:
var element = $(myElementSelector)[0];
var referral = $(myReferralSelector)[0];
$(treeSelector).jqxTree('addTo', element, referral);
I am using JSON data for the tree. Do I have to reset the whole tre source?
Thank you