I would like to disable sorting and paging if any selections are currently made on the DataTable. This will force the user to either remove the selections or push the button which acts on them. Turning off the paginator is easy with @ViewChild and this.dataTable.paginator = false;
Turning off sorting while selections are in place is not so obvious.
Thanks
DataTable Disable Sort temporarily
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
p-table has pSortableColumnDisabled property in upcoming 5.2.1 that can disable the sorting for header.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests