Hello Paramvir,
I wrote in the "Tinyint" column value (55). The server does not write the return value in the column.
Note: added picture
function saveChanges() {
//attempt to save editing cell.
if (grid.saveEditCell() === false) {
return false;
}
if ( grid.isDirty() && grid.isValidChange({ focusInvalid: true }).valid ) {
var gridChanges = grid.getChanges({ format: 'byVal' });
//post changes to server
$.ajax({
dataType: "json",
type: "POST",
async: true,
beforeSend: function (jqXHR, settings) {
grid.showLoading();
},
url: "?isl=GridKaydet", //for ASP.NET, java
data: {
//JSON.stringify not required for PHP
list: JSON.stringify( gridChanges )
},
success: function (changes) {
//console.log(changes.updateList);
$.each(changes.updateList,function(index, value){
/* ------------------------------------------------------ Hatasız Kayıt */
/*
var rowData = grid.pqGrid("getRowData", {rowIndx: rowIndx});
if (value['PRKOD'] == 0) {
grid.pqGrid("removeClass", {rowIndx: rowIndx,cls: 'ui-state-error'});
var recIndx = grid.pqGrid("option", "dataModel.recIndx");
if (rowData[recIndx] == null) {
rowData[recIndx] = data.recIndx;
}
rowData['TINYINT'] = value['TINYINT'];
grid.commit({ type: 'update', rows: changes.updateList});
grid.pqGrid("commit");
grid.pqGrid("refreshRow", {rowIndx:rowIndx});
}
*/
/* ------------------------------------------------------ Hatasız Kayıt/ */
console.log(index);
$.each(value,function(index, value) {
console.log(index+'/'+value);
});
});
grid.commit({ type: 'update', rows: changes.updateList});
grid.commit({ type: 'add', rows: changes.addList });
grid.commit({ type: 'delete', rows: changes.deleteList });
grid.history({ method: 'reset' });
},
complete: function () {
grid.hideLoading();
}
});
}
}