I can load grids fine using c# mvc but when I use the calls to getData, getRowData etc... I can't get an array as the documentation suggests. I create my grids like this:
var colModel = [
{
title: "Name", //title of column.
width: 65, //initial width of column
editable: false,
dataType: "string", //data type of column
dataIndx: "REP_NAME" //should match one of the keys in row data.
}
var dataModelTop = {
location: "remote",
sorting: "local",
sortIndx: "CHARGE_TYPE_DESC",
sortDir: "up",
dataType: "JSON",
method: "GET",
getUrl: function () {
return { url: Url4controller };
},
getData: function (response) {
return { data: response };
}
}
var grid_Top = pq.grid("#grid_Top", objTop);
var totalRecordsTop = $("#grid_Top").pqGrid('option', 'dataModel.data').length; //this works
//I want to access the first row of a column named Name of a refreshed grid to populate eleswhere on my webpage
var datafrmgrid = $("#grid_Top").pqGrid( "getCell", { rowIndx: 0, dataIndx: "Name" } ); //does not work.
Please help