jqGrid - how to have hidden fields in an edit form

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

    This is now supported within jqGrid via the edithidden attribute:

    colModel: [
        { name: 'optionValue', key: true, index: 'optionValue', width: 55, editable: true,     hidden: true, editrules: { edithidden: false } },
    

    Set to false to hide it in the add/edit form.

    0 讨论(0)
提交回复
热议问题