Categories | Question details Back To List | ||
accessing nodes in tree using auto loading If using dynamic loading of trees we can't access the specific nodes using functions like openItem, setCheck and so on. I understand why this is not possible, because the item has not loaded. But is there some way we can keep track of the items not loaded yet as far as their checked status? So if/when it loads we can auto check it after the AJAX call? That way functions like getAllChecked still work. The reason we want this is we store a list of items that should be checked in a database. When we load the tree we must keep track of any new items checked/unchecked but if using dynamic loading we can't do this. Answer posted by Support on Jan 09, 2009 09:09 >>That way functions like getAllChecked still work. While some possible workaround can be created it is not reliable conception. Before child items loaded there is no info about IDs of child items, so getAllChecked will not be able to return full list of checked items in any case. In your case you can get both getAllUnchecked and getAllChecked, send such info on server side where you can process both list and for items not mentioned in lists preserve their state ( because they wasn't loaded to client side ) Answer posted on Jan 09, 2009 09:13 Will the save state methods work with dynamic loading? Answer posted by Support on Jan 09, 2009 10:03 If you mean saveOpenStates|loadOpenStates- it will work with dyn. loading ( it will be able to fetch and open all necessary levels of data ) |