本文介绍了如何仅在subGridRowExpanded事件中将网格定义为子网格一次,而不是在每个扩展行操作中将其定义为子网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在讨论了我的要求之后 这里 &最终确定要使用网格作为子网格配置来实现它,现在,我想代替在主网格行的每个扩展操作中定义子网格[substrongRowExpanded事件中的 ],我可以用让子网格应该只定义一次.应该将它们隐藏起来.在随后的崩溃&中显示扩展操作.

After discussing my requirement here & finalizing to implement it with grid as subgrid configuration, now I think instead of deining subgrid in every expand operation of main grid row [in subGridRowExpanded event] can I have jqGrid definition in such a way that subgrid should get defined only once. They should be made hidden & shown on subsequent collapse & expand operation.

推荐答案

我不确定我是否正确理解您,但似乎您只需要设置reloadOnExpand: false属性www.trirand.com/jqgridwiki/doku.php?id=wiki%3asubgrid#properties"rel =" nofollow> subGridOptions .

I'm not sure that I understand you correctly, but it seems that you need just set reloadOnExpand: false property of subGridOptions.

这篇关于如何仅在subGridRowExpanded事件中将网格定义为子网格一次,而不是在每个扩展行操作中将其定义为子网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 07:08