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

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

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

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

 

相关文章:

  • 2021-10-24
  • 2021-09-25
  • 2022-12-23
  • 2021-11-29
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
相关资源
相似解决方案