Reputation: 27921
I'm looking for a way to start inline editing in jree jqgrid if clicked in checkbox column.
Currently I'm using ClickableCheckBoxFormatter
http://www.ok-soft-gmbh.com/jqGrid/Checkbox.htm
desribed in
and in
I tried free jqgrid checkbox formatter.
Issues:
How to fix those so that checkbox behaves like ClickableCheckBoxFormatter:
Upvotes: 0
Views: 1364
Reputation: 221997
The demo, which you use as the reference, use disabled checkboxes as formatter:
{ name: "closed", width: 70, align: "center", editable: true, formatter: "checkbox",
edittype: "checkbox", editoptions: {value: "Yes:No", defaultValue: "Yes"},
stype: "select",
searchoptions: { sopt: ["eq", "ne"], value: ":Any;true:Yes;false:No" } }
It's the origin of the problem. I would suggest you to use booleanCheckboxFa
instead:
{ name: "closed", width: 70, template: "booleanCheckboxFa" },
like on the demo or at least the old formatter: "clickableCheckbox"
:
{ name: "closed", width: 70, align: "center", formatter: "clickableCheckbox",
edittype: "checkbox", editoptions: {value: "true:false", defaultValue: "false"} }
like the demo.
Upvotes: 1