title: jqGrid iterate over the grid Data in a subgrid
body: <p>I would like to iterate all over the data contained in grid object.
  My grid has a definition that include a subgrid object and is created this way</p>
  
  <pre><code>var grid = $(gridID);
  var pager = $(pagerID);
  grid.jqGrid({
      url: GetBaseWSUrl() + 'MyWs.asmx/MyMethod',
      colNames: ['UMLT', 'FF', 'PC'],
      colModel: [
              { name: 'Name', index: 'Name', width: 180, template: colTextTemplate },
              { name: 'AlertFF', index: 'AlertFF', width: 22, align: 'center', sortable: false, formatter: "checkbox", formatoptions: { disabled: false} },
              { name: 'AlertPC', index: 'AlertPC', width: 22, align: 'center', sortable: false, formatter: "checkbox", formatoptions: { disabled: false} }
          ],
      [...]
      subGrid: true,
      subGridOptions: {
          "plusicon": "ui-icon-triangle-1-e",
          "minusicon": "ui-icon-triangle-1-s",
          "openicon": "ui-icon-arrowreturn-1-e",
          "reloadOnExpand": true,
          "selectOnExpand": true
      },
      subGridRowExpanded: function (subgrid_id, row_id) {
          var subgrid_table_id = subgrid_id + "_t";
          $("#" + subgrid_id).html("&lt;table id='" + subgrid_table_id + "' class='scroll'&gt;&lt;/table&gt;");
          $("#" + subgrid_table_id).jqGrid({
              [...] omitted for brevity
          });
      }
  });
  </code></pre>
  
  <p>I know I can use code like this one to iterate on the data, and effectively it works for the first level but I am looking for a method that will permit me to iterate even on the subgrid data.</p>
  
  <pre><code>var grid = $('#grid');
  var m = grid.getDataIDs();
  for (var i = 0; i &lt; m.length; i++) {
      var record = grid.getRowData(m[i]);
      //do something with the record
  }
  </code></pre>
  
  <p>Is there any way to accomplish this?</p>