Hi
Situation:
I have a grid containing dynamic rows & colls filled with checkboxes.
Purpose is to save changes made to those checkboxes.

Problem:
When clicking a checkbox, the edit mode isn't triggered and therefore no change has been made.
I have to click on a cell to do this.

Click on cell marks cell changed and value has changed.

During my search on the forum I found following topics:
http://www.trirand.com/blog/?p…..p;search=1
http://www.trirand.com/blog/?p…..-jqgrid-36
Neighter of them could provide me a solution.
Source (limited):
|
1 |
$("#grid").jqGrid(<br /> {<br /> url: '.../GridData',<br /> datatype: 'json',<br /> colModel:<br />[{name:'field1',index:'field1',sortable:false,width:25,align:'center',<br /> formatter:'checkbox',formatoptions:{disabled:false},<br /> editable:true,edittype:'checkbox',editoptions:{value:'true:false'},search:false},<br />{name:'field2',index:'field2',sortable:false,width:25,align:'center',<br /> formatter:'checkbox',formatoptions:{disabled:false},<br /> editable:true,edittype:'checkbox',editoptions:{value:'true:false'},search:false}]<br /> multiselect: true,<br /> multiboxonly: true,<br /> cellEdit: true,<br /> cellsubmit: 'clientArray',<br /> mtype: "POST",<br /> pager: $('#gridPager'),<br /> rowNum: 20,<br /> rowList: [10, 20, 30, 50, 100],<br /> caption: 'caption',<br /> toolbar: [true, "top"],<br /> height: '100%'<br /> });</code>Thanks in advance<br />Brecht<br /> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top