title: load values of getRowData to another grid
body: <p>I'm planning to get data from grid1 using getRowData &amp; populate another grid(ViewGrd-in my case) with those data. I'm doing following. I think I'm very close to it but missing some format or may be don't know how to extract from "data"- array in my case. Please take a look at following code. I need to do something at the very end inside for loop.</p>
  
  <pre><code>$(document).ready(function() {
      var data = [];
      var rows= buybackgrid.jqGrid('getRowData');
      for (var i=0, il=ids.length; i &lt; il; i++) {
          if(buybackgrid.find('#'+ids[i]).hasClass('ui-state-highlight')){
              var row = rows[i];
              data.push($.param(row));
          } 
      }
      ViewGridInit(data);
  });
  
  function ViewGridInit(data){
      jQuery("#ViewGrd").jqGrid({
          datatype: 'local',
          height:'100%',
          width:'100%',
          colNames: result.colNamesData, //Don't worry abt this
          colModel: result.colModelData,//Don't worry abt this
          rowNum : 100,
          shrinkToFit :false,
          altRows: true,
          altclass:'altRow',
          autowidth: true,
          multiselect: true,
          gridComplete:function (){
          },
          serializeGridData: function (data){ 
              return $.toJSON(data);   
          }
      });
  
      //end of jQuery("#ViewGrd").jqGrid({
      //Question : I need to take the record from "data" parameter &amp; load
      //"#ViewGrd" locally with that. Following didn't work for me.
  
     //"data" looks like this :
       lead_date=01%2F12%2F2014&amp;asset_name=Hosted+VoIP+vs+VoIP+PBX%3A+And+the+winner+is.&amp;company_name=Cisco&amp;cost=28.00&amp;lead_event_id=827327&amp;Company_Size=5%2C000%2B&amp;Job_Title=Senior+Management+(SVP%2FGM%2FDirector)&amp;Industry=Telecommunications&amp;Country=United+States
  
  
      for(var i=0;i&lt;totalselectedLeads;i++){
          jQuery("#ViewGrd").jqGrid('addRowData',i+1,data[i]); 
      } 
  </code></pre>
  
  <p>Thanks in advance,</p>
  
  <p>-A</p>