Hi,
It seems to me TreeView element is not working correctly for such scenario.
1. Read action controller sets checked attribute to true if corresponding item can be found in specific table or has an ancestor item found in that table.
2. There is a TreeView element with checkboxes enabled, checkChildren and loadOnDemand are turned on.
Workflow: user unchecks some item, which has children and was checked before, but not expanded. Then user expands the node, and all checks return back, because they are assigned to subitems based on the status in table without considering the fact that some change has happened on front-end already.
Similarly, if neither an item, nor any of its sub-items was checked, then item gets checked, then expanded - all checks will disappear.
I do understand that this is a complex issue, but please advise what options do I have now, except of advising users not to expand after checking or unchecking, or to expand before checking or unchecking?
Please note that if I do loadOnDemand = true, it will take terrible time to apply all checks accordingly (the number of treeview items is hundreds already and will grow).
Thank you.
It seems to me TreeView element is not working correctly for such scenario.
1. Read action controller sets checked attribute to true if corresponding item can be found in specific table or has an ancestor item found in that table.
2. There is a TreeView element with checkboxes enabled, checkChildren and loadOnDemand are turned on.
Workflow: user unchecks some item, which has children and was checked before, but not expanded. Then user expands the node, and all checks return back, because they are assigned to subitems based on the status in table without considering the fact that some change has happened on front-end already.
Similarly, if neither an item, nor any of its sub-items was checked, then item gets checked, then expanded - all checks will disappear.
I do understand that this is a complex issue, but please advise what options do I have now, except of advising users not to expand after checking or unchecking, or to expand before checking or unchecking?
Please note that if I do loadOnDemand = true, it will take terrible time to apply all checks accordingly (the number of treeview items is hundreds already and will grow).
Thank you.