Can you tell me how to get the newly added item/element of a jqxtree with the following constraints?
– Item is added using addto method, and can be added anywhere in the target tree nested hierarchy.
– Item label and value can be duplicates in target tree so cannot use them as unique identifiers
– Added event returns array of items but in list order, not order of creation
– The id of the selected element in the target, after which new item will be placed, cannot be used as search parameter in looking through the Added event array for the next item (the id gets changed)
I can think of some hacks but was wondering how you would do it.
e.g. set disable to true in source, look for true in target and then set disable to false again. In my case disable is not used in the tree.
Any ideas are appreciated!