ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: wmangus on November 10, 2015, 10:26:32 pm
-
I need to use the value in a cell to change values in other cells, but when I try to use ui.colIndx, it shows only "undefined".
The code is below:
$("div#grid3").pqGrid({
width: 375, height: 275,
dataModel: dataModel3,
colModel: colsOption2,
bottomVisible: false,
title: "New Single",
cellSave: function ( event, ui) {
alert( ui.colIndx);
}
What am I doing wrong?
-
You can get colIndx from dataIndx
$grid.pqGrid( 'getColIndx', {dataIndx: ui.dataIndx } );
http://paramquery.com/api#method-getColIndx
-
Thank you for your help. Your solution worked. :)
I tried to use ui.colIndx because it is listed in the documentation of the cellSave event.