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
45
igTree Knockout reorder nodes
posted

Hi

I'm using the igTree component with knockoutJS extension to display a nested list of items, and I would like to sort/reorder the nodes. Currently, the tree does not reflect the changes to my data source. The data source basically consists of nested observableArrays, all sorted on a numeric property 'sortOrder'. The reorder algorithm just swaps 'sortOrder' for two elements. I tried to manually call 'applyChangesToNode' which seemed to work, although eventually threw a 'maximum call stack exceeded' error. Any pointers?

Thanks!