jqgrid 设置编辑行中的某列为下拉选择项

有时,需要对编辑行中的某列的内容通过选择来完成,以保证数据的一致性、规范性。

可设置colModel的label的属性 edittype: "select",同时指定 editoptions 属性值

        colModel: [
              {
                  label: '是否筛选',
                  name: 'IsSearch',
                   80,
                  editable: true,
                  edittype: "select",
                  editoptions: {value: "false:否;true:是"} //默认为否
              }]

value值:放在第一个元素为默认选中项

原文地址:https://www.cnblogs.com/senyier/p/7308038.html