Hi
Earlier I have used this code while using 2.x version. and Now I upgraded to 3.3 version. I am using getInstance Method of the grid in render function of the colModel. Now after upgrading , getInstance method is returning undefined.
Is this will work in 3.3 , how to handle?
{
title: "Open", dataType: "float", width: '95', resizable: false, dataIndx: "open", align: "right",
editable: function (ui) {
return disablePlus(ui);
},
render: function (ui) {
var grid = $(this).pqGrid('getInstance').grid
if (grid.isEditableCell({ rowIndx: ui.rowIndx, dataIndx: 'open' }) == false && ui.rowIndx == 1) {
grid.addClass({ rowIndx: ui.rowIndx, dataIndx: 'open', cls: 'blackcell' });
}
return (!isNaN(ui.cellData) && Number(ui.cellData) > 0) ? parseFloat(ui.cellData).toFixed(2) : "";
}
}