ExtJs TreePanel Checkbox , 选择父节点,自动选择全部子节点…
2010年4月12日
没有评论
使用ExtJs的TreePanel 时,如果你使用了Checkbox,一般需要实现如下功能:
1、击父节点,则选择全部子节点。If a parent node is checked, check all the children
2、 不选择父节点时,则自动将子节点不选。If a parent node is unchecked, uncheck all the children
3、选择一个子节点后,则父节点、父节点的父节点….自动选中。If a child node is checked, check all the ancestors
近期评论