gijgo
gijgo copied to clipboard
Treeview Checkbox Event Firing Logic
For the checkbox tree where there are parent and children nodes. If checkbox cascading is enabled (checking or unchecking a parent results in checking and unchecking all children), change events will fire for every child even if there is no change in checked state. Example, if there is a single parent with 5 children, and just one child is checked, the process of unchecking the parent results in (6) events firing: 1 for the parent and one for each child. Seems to me only two events should fire (not for those children that were unchecked to begin with).