-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Add DataTable Checkbox Header Toggle All Pages Option #2424
Feature Request: Add DataTable Checkbox Header Toggle All Pages Option #2424
Conversation
Add `headerCheckboxToggleAllPages` DataTable property to allow the header checkbox on paged DataTables with checkbox multiple selection enabled to toggle the selection of items across all pages. Update demo/documentation to reflect new property.
Hi...When we will expect this feature?..Thank you |
Thanks for your interest, @SUDHAGARAN. We'll need to wait to hear from @cagataycivici and the primeng team for an ETA. |
can we have an ETA for this? I am desperately looking out for this feature |
any news on this feature? It Is already out? |
@veplechuc, we're still waiting to hear from the primeng team. Hopefully they will merge it soon. |
@saverett thanks! It will be nice to have it soon!!. |
This feature works with lazy load? |
@lommez The table selection feature works by adding the elements for the selected rows into a |
Thanks @saverett. |
Add
headerCheckboxToggleAllPages
DataTable property to allow the header checkbox on paged DataTables with checkbox multiple selection enabled to toggle the selection of items across all pages. Previously this was only possible via theonHeaderCheckboxToggle
event--however, doing so produced strange results where the header checkbox would remain checked even if only the current page's items were selected. This change provides the expected results. This is an improvement over the original fix provided in #1412.Update demo/documentation to reflect new property.
I created a new property for this so as to not alter the previous behavior of the header checkbox on paged DataTables--however, if that isn't a concern we could simplify this and remove the new property by just having the header checkbox toggle the selection of all items across all pages as its default behavior (for paged checkbox DataTables).