title: jqGrid: function $("#gridView").jqGrid("getGridParam", "data") return null?
body: <p>I had a problem with jqGrid
  When i use:</p>
  
  <pre><code>$("#gridView").jqGrid({
      url:"grid.php",
      colModel:[
              { name: 'id', index:'id'},          
      ],
      datatype: "json",
      mtype:"post",
  
      height:350,
      rownumbers:true,
      treeGrid: true,
      treeGridModel : 'adjacency',
      ExpandColumn : 'id',
      ExpandColClick: true 
      ....
  
  $("#gridView").jqGrid("getGridParam", "data") return array
  </code></pre>
  
  <hr>
  
  <pre><code>$("#gridView").jqGrid({
      url:"grid.php",
      colModel:[
              { name: 'id', index:'id'},          
      ],
      datatype: "json",
      mtype:"post",
      pager:"#pager",
      rowNum:50,
      rowList:[10,50,100,500,1000],
      viewrecords:true,
  
      height:350,
      rownumbers:true,
      ....
  
  $("#gridView").jqGrid("getGridParam", "data") return null ??
  </code></pre>
  
  <p>I've read article here <a href="https://stackoverflow.com/questions/16715248/jqgrid-getgridparam-not-returning-id-of-data-item">JQGrid getGridParam not returning ID of data item</a></p>
  
  <p>But I cannot set loadonce:true because of my dynamic data for each click</p>