Hi,
I have a datatable where I have applied multiple filters. Is there an easy way of clearing all of the filters, resetting the datatable in the process?
Cheers
Datatable clear all filters
This is what I have gotten to work, sorta. It resets the table but not the fields for the filters. I can't figure out how to get the filter fields to clear too.
I am hoping somebody else can chime in and help.
I am hoping somebody else can chime in and help.
Code: Select all
const resetFilters = () => {
dt.current.reset()
}
<button label="Clear Filters" onClick={resetFilters}>Clear Filters</button>
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Sorry for the delayed response! I'll add a new demo related to the clear filter field. Thanks a lot for your feedbacks!
Best Regards,
Sorry for the delayed response! I'll add a new demo related to the clear filter field. Thanks a lot for your feedbacks!
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 20 guests