Author Topic: paramquery grid not filling data if bootstrap accordion is collapsed  (Read 191 times)

mraj

  • Newbie
  • *
  • Posts: 49
    • View Profile
Hi

I am having paramquery grids inside accordions ( many accordions ).

While in the accordion collapsed state, when data is bind to the paramquery grid ( usind pqgrid option dataModel.data ) , the data is not filling ,  showing only empty grid.

While the accordion is open state, when data is bind to the grid, the data is filling.

Please provide a work around, for this.

thanks in Advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: paramquery grid not filling data if bootstrap accordion is collapsed
« Reply #1 on: July 24, 2024, 08:43:42 pm »
Please find the event corresponding to open state of accordion and call refresh method of the grid in that event.

mraj

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: paramquery grid not filling data if bootstrap accordion is collapsed
« Reply #2 on: July 26, 2024, 03:41:52 pm »
I also was thinking the same.

Implemented it, and it worked.

Thanks for the reply.
Mohan Raj K

mraj

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: paramquery grid not filling data if bootstrap accordion is collapsed
« Reply #3 on: July 26, 2024, 08:18:52 pm »
Just added before filling the grid ( before filling the  grid making the accordion open ).

 $('#CollapseOne').collapse('show');