Create Checkbox in jqGrid

前端 未结 1 1840
忘掉有多难
忘掉有多难 2021-02-10 08:32

I am trying to create the checkbox inside the jqgrid columns and using the below code

{ 
   name: \'CanDo\', width: 50, index: \'CanDo\', 
   edittype: \'checkbo         


        
1条回答
  •  抹茶落季
    2021-02-10 09:25

    I believe you are missing the editable:true option. Try this:

    { 
     name: 'CanDo', width: 50, index: 'CanDo', 
     editable: true,
     edittype: 'checkbox', editoptions: { value: "True:False" }, 
     formatter: "checkbox", formatoptions: { disabled: true} 
    }
    

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