ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: mraj on July 24, 2024, 10:21:07 am

Title: paramquery grid not filling data if bootstrap accordion is collapsed
Post by: mraj on July 24, 2024, 10:21:07 am
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.
Title: Re: paramquery grid not filling data if bootstrap accordion is collapsed
Post by: paramvir 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.
Title: Re: paramquery grid not filling data if bootstrap accordion is collapsed
Post by: mraj 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
Title: Re: paramquery grid not filling data if bootstrap accordion is collapsed
Post by: mraj 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');