当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - Is it possible to use the built in multiselect functionality in jqGrid TreeGrids?

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: