title: setLabel after page change jqgrid
body: <p>I would like to change column names after gridComplete, so I call in gridComplete block : </p>
  
  <pre><code>setTimeout(function(){
              formatCols()
          },"200");
  </code></pre>
  
  <p>The formatCols function is a ajax function : </p>
  
  <pre><code>function formatCols(){
  var ids = new Array();
  $("tr.jqgrow").each(function(){
      ids.push($(this).attr("id"));
  })
  $.ajax({
      type: "post",
      dataType: "json",
      data:{
          podszkola: $('#szkola_select').val(),
          ids: ids
      },
      url: location.protocol+"//"+location.host+"/sekretariat/ksiegaewidencji/getyears",
      success: function(data){
          var columnNames = $("#list").jqGrid('getGridParam','colModel');
          for(var i =1; i&lt;=13 ; i++){
              $("#list").setLabel(columnNames[i+1].name.toString(), data.response[i] ,"",{});
          }
  
          if(firstGrid){
              jQuery("#list").jqGrid('setGroupHeaders', {
                  useColSpanStyle: true, 
                  groupHeaders:[
                  {
                      startColumnName: 'Nr.', 
                      numberOfColumns: 2, 
                      titleText: '&lt;em&gt;Dane Osobowe&lt;/em&gt;'
                  },
                  {
                      startColumnName: 'r1', 
                      numberOfColumns: 13, 
                      titleText: '&lt;em&gt;Spełnienie obowiązku szkolnego w kolejnych latach&lt;/em&gt;'
                  }
                  ]
              });
          }
          firstGrid = false;
          updateCellWidth("list")
          $("#mainLoadingScreen").hide();
      }
  })
  </code></pre>
  
  <p>}</p>
  
  <p>The main part of these function is :</p>
  
  <pre><code>for(var i =1; i&lt;=13 ; i++){
              $("#list").setLabel(columnNames[i+1].name.toString(), data.response[i] ,"",{});
          }
  </code></pre>
  
  <p>It work's fine, but only once ! When I try to change page of grid table function change the names of wrong columns. I think the problem is first argument of setLabel() function, but I don't know what should I pass there to make it work correctly. How to get current (after change) colNames, or simply how to make it work ? </p>
  
  <p>Thanks in advance.</p>