jqGrid - how to have hidden fields in an edit form

前端 未结 7 1322
花落未央
花落未央 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:42

    If you can trust the end user, you can simply add the editoptions attribute and set the disabled parameter to disabled like this :

    colModel: [
        { name: 'your_field_name', editable: true, hidden: true, search:false, editoptions: {'disabled':'disabled'}},
    ]
    

提交回复
热议问题