ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: qbcsystemsinc on January 26, 2016, 12:00:11 am

Title: Trying to set .on('pqGrid:refresh' doesn't work.
Post by: qbcsystemsinc on January 26, 2016, 12:00:11 am
I created a grid, and after instantiating it, did the following:

$('.selector').on('pqGrid:refresh',function(evt,ui){console.log(evt);});

Things that should trigger the grid refresh do not log an event in the console.

If I do the initial creation of the grid with:

...
refresh: function(evt,ui) {console.log(evt);}
...

then it displays as normal.

I'm using pqGrid v 3.2.0
Title: Re: Trying to set .on('pqGrid:refresh' doesn't work.
Post by: paramvir on January 26, 2016, 10:04:50 am
That would require trigger option to be true.

http://paramquery.com/pro/api#option-trigger

http://paramquery.com/pro/tutorial#topic-events