View Selected Only

Shows a way to toggle viewing all selected.

This example shows how to toggle between viewing all users and only the selected users in a data grid. It does this by maintaining two sets of settings: one for the default view (all users) and one for the selected view (only selected users) and adding an additional filter option Ids.

The "View Selected Users" button will show only the users that are currently selected, while the "View All Users" button will reset the view to show all users.

The data grid supports filtering, sorting, and pagination. You can also clear filters and selection using the provided buttons.

An unhandled error has occurred. Reload 🗙