Author Topic: Simultaneous generation of report on single page causing error  (Read 1921 times)

samirkamble

  • Newbie
  • *
  • Posts: 2
    • View Profile
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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Simultaneous generation of report on single page causing error
« Reply #1 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