Author Topic: refreshHeader function call generates an error  (Read 3219 times)

snagaval

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 4
    • View Profile
refreshHeader function call generates an error
« on: December 09, 2014, 12:50:04 am »
Hello,

In the following piece of code:

   var baGrid = $("#dispDataDiv" ).pqGrid( "getInstance" ).grid;
   baGrid.refreshHeader();

 the call to refreshHeader() works in the grid pro evaluation version -- but, generates a "refreshHeader is not a function" error in the paid version (V 2.3.0).

Any ideas?
Thanks,

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: refreshHeader function call generates an error
« Reply #1 on: December 09, 2014, 01:05:33 am »
Currently (i.e., for version 2.3.0) the workaround for refreshHeader method is to use this code snippet after loading the jquery, jqueryui and pqgrid files.

Code: [Select]
        $.paramquery.pqGrid.prototype.refreshHeader=function(){
            this._createHeader();
        };