Skip to content

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 {

Feedback and Knowledge Base