jqGrid: Customize row display

ⅰ亾dé卋堺 提交于 2019-12-25 01:55:13

问题


Is it possible to use subgrid without url? Because I want to display data under my row, but this data doesn't need to come from an ajax call. It's just a label in different color depending of the row.

Thank you


回答1:


If you would use subGridRowExpanded event handler you can full specify the contain of the div which will be shown under the row after the expanded row. See very old demo from the answer:

So you can for example follow to the subgrid as grid example but use datatype:'local' and data parameter for the subgrid instead of the url.



来源:https://stackoverflow.com/questions/6272900/jqgrid-customize-row-display

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!