Hidden Columns in jqGrid

前端 未结 7 1869
不思量自难忘°
不思量自难忘° 2020-12-12 18:20

Is there any way to hide a column in a jqGrid table, but have it show as read-only when the row is edited in the form editor modal dialog?

7条回答
  •  余生分开走
    2020-12-12 18:31

    You can use the following code to hide a table column..

    JQuery("tableName").hideCol("colName");
    

    And you can use the following code to show it again.

    JQuery("tableName").showCol("colName");
    

    For your question, you can call the hideCol() code on the document.ready(), and you can bind the showCol() code on the dialog's edit/click event.

提交回复
热议问题