I've managed to get regular textarea updates working fine with editor and editModel, with pqgridcellbeforesave, working fine.
My difficulty is getting pqgridcellbeforesave, when specifying a different editor (like 'select', or 'checkbox' under colModel. Im assuming there's a simple way to do this, that Im missing?
Thanks in advance.
Here's some code...
var colModel[
{
title: 'Auto'
,sortable: false
,Width: 70
,dataType: 'bool'
,dataIndx: 'auto'
,align: 'center'
,editor { type: 'checkbox' , cls: 'checkBoxColumn'}
}
...
];
...
var obj {
,editable: true
,editor: { type: "textbox" }
,editModel: {
clicksToEdit: '1',
saveKey: $.ui.keyCode.ENTER, // or 13.
http://api.jqueryui.com/jQuery.ui.keyCode/ select: false,
keyUpDown: false,
cellBorderWidth: 0
}
...
};
var $grid = $("#grid").pqGrid(obj);
$grid.on( "pqgridcellbeforesave", function( evt, ui ) {
...
$.ajax(...) //This works right, when this event is fired.
});