ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: samirkamble on July 22, 2019, 07:05:30 pm

Title: Simultaneous generation of report on single page causing error
Post by: samirkamble on July 22, 2019, 07:05:30 pm
Hello,

I have a tab like structure on my page and data is getting rendered within PQ Grids from Ajax calls to the server.  I an using Group by a column name.

I found that when both PQ grids are being generated at a same time. Both of them found to be grouped by and not opened . Sometimes one of them renders correctly and other dont.

Can you please help in this regards,

We want to purchase PQ grid license and currently evaluating its pro copy.

Regards,
Sam.
Title: Re: Simultaneous generation of report on single page causing error
Post by: paramvir on July 23, 2019, 08:57:12 pm
Sam

You need to ensure that pqGrid is refreshed whenever corresponding tab is activated.

Code: [Select]
activate: function(event, ui) {
      ui.newPanel.find( ".pq-grid" ).pqGrid( "refresh" );
}

activate event of jqueryui tabs:
https://api.jqueryui.com/tabs/#event-activate