How to Obtain Entire Datagrid Data as an Array?

To get the entire array, simply use "getRowData". Suppose your table name is "data1", 

var my_array = jQuery("#data1").jqGrid("getRowData");

To get specific row, pass the value used as a primary key for array, e.g

var my_data_row = jQuery("#data1").jqGrid("getRowData", 3);

Sample content of my_data_row:

Object {
id"3"foo"fa28c6cdf8dd6f41a657c3d7caa5c709"bar1"bar3xxx"bar2"bar3"cost"28"…}

Feedback and Knowledge Base