BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi!
When I use the grid's selection function, the checkbox state and event can watch the actual page only ?
For example I have a table with 3 pages, and when I click the checkbox on the header I want to select or deselect only the records on the actual page. And I would like to the checkbox (unchecked,check,stop) shows allways the actual page state. So If I selected all records on the first page the checkbox shows the "check" state, but If I move to the second page, where I did not select anything then the checkbox shows the "unchecked" state and etc..
Regards,
Krisztian Csatai
Hi Csatai,
Thanks for contacting Syncfusion support.
By default, the checkbox selection feature selects only the current page
records. Please find the below documentation and sample for your reference.
Checkbox selection: https://ej2.syncfusion.com/react/documentation/grid/selection/check-box-selection/
Sample: https://stackblitz.com/edit/react-kcutvg?file=index.js
If you have any further questions or concerns, please let us know by sharing
the following information:
Regards,
Rajapandiyan S
Dear Rajapandiyan,
Thank you the answer! I want to use with persistSelection flag. So when I set it true it does not work. That time the checkbox selected all the items. So what I wrote on the top I meant that with persistSelection flag.
Regards,
Krisztian Csatai
Hi Csatai,
In persist selection feature, checking the header checkbox selects whole records from all the pages for Local data binding. If you clear the selection from the header checkbox, it will clear the selection on all the pages. Since this is the default behavior of the persistSelection feature. The EJ2 Grid does not have the support to check/ uncheck rows only within the current page through the header checkbox.
Regards,
Rajapandiyan S
Dear Rajapandiyan,
Thank you! Then can I control manually the header checkbox value (unchecked,check,stop) somehow ?
Regards,
Krisztian Csatai
Hi Csatai,
Kindly share the below details to understand your requirement properly and
check its feasibility with the Grid.
We look forward to hearing back from you soon.
Regards,
Rajapandiyan S