Hi,
I met a strange problem.
Please have a look with the following code:
/* part a */
var DM = $("#grid_json").pqGrid("option", "dataModel");
var data = DM.data;
data[rowIndex][colIndex] = 'test';
alert(data[rowIndex][colIndex]);
/* part b */
var DM = $("#grid_json").pqGrid("option", "dataModel");
var data = DM.data;
data[rowIndex]['Name'] = 'test';
alert(data[rowIndex]['Name']);
/* part c */
var DM = $("#grid_json").pqGrid("option", "dataModel");
var data = DM.data;
data[rowIndex][colIndex] = 'test';
alert(data[rowIndex]['Name']);
As the above codes, I have a cell the dataIndex is "Name". If I set value for this cell and get it value by same way, I can get the cell content (like part a&b).
But if I use different way to set and get value. (part c) I can only get an "undefined" value.
Did I have any mistakes for this operation?
Thank you!