I want to access grid data as below
var namePresent;
var datafromgrid = $('#MyGrid').jqGrid('getRowData');
for (var i = 0; i < rowCount; i++) {
var name = datafromgrid[i].Name;
var firstname = name.split(/ +/);
if (firstname[0].toLowerCase() == Name.toLowerCase()) {
namePresent = 1;
}
}
Now suppose when my grid is loaded with 5 records then this code throws error on line var name = griddata[i].Name;
as from grid it is unable to read griddata[5].
Please tell me how to read whole grid data even if it is not visible on screen but is fetched successfully?