Get Free Trial

Load all data at once

Resolved
Tiago asked on September 29, 2021

Hello,
 
Is it possible to load all grid data at once? When i click on the checkbox in the header, all the values checkboxes should be checked aswell, i’m assuming that’s because flexmonster only load a few rows per scroll bar, can i change that?
 
Heres a JSFiddle example for reference: https://jsfiddle.net/4a25sye7/

5 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster October 4, 2021

Hello, Tiago,
 
Thank you for contacting us.
 
When there is a big amount of cells in your report, Flexmonster renders only the visible part of the table. It is an important concept of our virtual grid approach. To fix this, we suggest you the following approach: just check if the Country checkbox is selected before the render. Please see an example on JSFiddle: https://jsfiddle.net/flexmonster/utvy2cf9/. Feel free to customize it according to your case.
 
Hope this helps! Let us know if other questions arise.
 
Kind regards,
Nadia

Public
Tiago October 5, 2021

Hello, Nadia,
 
Thanks for the answer, it works like a charm, but how can i store all the checkboxes data like when i check them manually?
 
PS: Note that in the attached photo, although all checkboxes are selected, the data is not being inserted into the array (selectedRows)
 
Kind regards,
Tiago

Attachments:
not-storing-data.PNG

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster October 7, 2021

Hello, Tiago,
 
Thank you for your response.
 
We suggest you trying a different approach. When `reportcomplete` event is triggered, save all the members names into the `selectedRows` object. Now you can change their state by adding a boolean value on change of the checkbox. Please see the example on the following JSFiddle: https://jsfiddle.net/flexmonster/8ezmjyt2/
Kindly note that if you use `updateData` in your case, it is important to also update the `selectedRows` object.
 
Please let us know if you have more questions.
 
Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 7 days ago

Hello, Tiago,
 
Our team is wondering if you had some time to test the latest example we made for you.
 
Please let us know if everything works. Looking forward to your response.
 
Kind regards,
Nadia

Public
Tiago 7 days ago

Hello, Nadia,
 
Everything worked just fine, i appreciate the help, thank you!
 
Kind regards,
Tiago

Please login or Register to Submit Answer