问题描述:

I use the jqGrid TreeGrid functionality. Is it possible to use the multiselect functionality with TreeGrid? If not, is there a workaround for this?

I would like to have something like when the top level is checked/unchecked and sub level is open all sub levels should be checked/uncheked automatically.

Thanks.

网友答案:

What you can do is to create additional column having formatter:'checkbox' with formatoptions:{disabled: false} and simulate the multiselect functionality in your own code. You can see the demo from the answer as the starting point. The usage of onCellSelect could be probably also helpful for you. Another answer could help you to do some additional actions on expanding of nodes.

相关阅读:
Top