jqgrid:是否可以每隔“n”插入一个分段卷起栏记录?
使用 jqGrid 是否可以在每“n”条记录中插入一个节栏,其中单击节栏将切换节展开/折叠?我正在寻找一种方法来控制网格的显示高度,当我设置其高度= 100%时。下面是伪 html,显示了每 5 行插入一个分区栏。最后一部分只有 2 行。分区栏不必有列名。
<table id='jq-table'>
<div class='column-headers'>name....city....postal code<div>
<div class='section-bar'>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
</div>
<div class='section-bar'>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
</div>
<div class='section-bar'>
<row> some data </row>
<row> some data </row>
</div>
谢谢
With the jqGrid is it possible to insert a section bar every 'n' records where clicking on the section-bar would toggle section expand/collapse? I am looking for a way to control the displayed height of the grid when I have set its height=100%. Here is pseudo-html showing such a section-bar inserted every 5 rows. The last section has only 2 rows. The section-bar would not have to have column-names.
<table id='jq-table'>
<div class='column-headers'>name....city....postal code<div>
<div class='section-bar'>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
</div>
<div class='section-bar'>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
<row> some data </row>
</div>
<div class='section-bar'>
<row> some data </row>
<row> some data </row>
</div>
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找子网格功能。
You're looking for the subgrid feature.