changing JQgrid column name dynamically

前端 未结 6 1805
时光说笑
时光说笑 2020-12-10 06:26

I just need to rename JQgrid column dynamically as per user selection from a list of options. How can I do that?

6条回答
  •  伪装坚强ぢ
    2020-12-10 06:50

    You can use this syntax:

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

    This will change first column name to NewLabel in your grid with id=grid1.

提交回复
热议问题