开发者

jqgrid : is it possible to insert a section-roll-up bar every 'n' records?

开发者 https://www.devze.com 2023-01-06 23:07 出处:网络
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 heigh

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


You're looking for the subgrid feature.

0

精彩评论

暂无评论...
验证码 换一张
取 消