简体   繁体   中英

jqGrid - subgrid: need to use value from main grid row as subgrid column header…how?

是否有一种“简单/优雅”的方法来设置jqGrid子网格的列标题之一(所有其他参数都可以是常量),该值基于它从主网格中详述的行中某个单元格的值?

Not sure if there is an event you can hook into when the subgrid gets displayed, but it appears it's possible to change the column label with the following:

jQuery("#grid1").jqGrid('setLabel', 0, 'NewLabel');

Taken from: https://stackoverflow.com/a/4448454/109456

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM