jqGrid - how to have hidden fields in an edit form

前端 未结 7 1336
花落未央
花落未央 2020-12-21 09:16

I want to be able to pass fields into the edit form when a user attempts to edit a row, but I don\'t want these fields to be editable - I want them to just be hidden so they

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 09:38

    try this:

    colModel: [
        { name: 'your_field_name', editable: true, hidden: true, search:false, editoptions: {style:'display:none;'}},
    ]
    

提交回复
热议问题