RadzenGrid Reset() - not clearing second filter in FilterMode.Advanced. #42

Closed
opened 2026-01-29 17:30:35 +00:00 by claunia · 0 comments
Owner

Originally created by @devaale on GitHub (Feb 22, 2021).

Found a bug where if RadzenGrid FilterMode is set to "FilterMode.Advanced", calling Reset() method (which should clear filters) doesn't clear the second filter. (it clears the filter itself and shows correct records, but doesn't clear the text-field in filter input)

Steps to reproduce the behavior:

  1. Create <RadzenGrid FilterMode="FilterMode.Advanced" ... > ....
  2. Create <RadzenButton @ref ="dataGrid" Click=@ResetData ... />
  3. Create Method ResetData() { dataGrid.Reset() }
  4. Set both filter inputs (advanced filter) of selected column
  5. Click the button to reset filters
  6. Check to see that the second filter wasn't cleared

Expected behaviour:
Calling RadzenGrid.Reset() method clears all filters and their input fields

Screenshots
Before calling Reset() :

image

After calling Reset() :

image

  • OS: Windows 10
  • Chrome 88
Originally created by @devaale on GitHub (Feb 22, 2021). Found a bug where if RadzenGrid FilterMode is set to "FilterMode.Advanced", calling Reset() method (which should clear filters) doesn't clear the second filter. (it clears the filter itself and shows correct records, but doesn't clear the text-field in filter input) Steps to reproduce the behavior: 1. Create <RadzenGrid FilterMode="FilterMode.Advanced" ... > .... </RadzenFrid> 2. Create <RadzenButton @ref ="dataGrid" Click=@ResetData ... /> 3. Create Method ResetData() { dataGrid.Reset() } 4. Set both filter inputs (advanced filter) of selected column 5. Click the button to reset filters 6. Check to see that the second filter wasn't cleared Expected behaviour: Calling RadzenGrid.Reset() method clears all filters and their input fields **Screenshots** Before calling Reset() : ![image](https://user-images.githubusercontent.com/72936154/108678250-84dec900-74f3-11eb-8e53-5524f607464b.png) After calling Reset() : ![image](https://user-images.githubusercontent.com/72936154/108678297-97f19900-74f3-11eb-90be-bce835a50bb8.png) - OS: Windows 10 - Chrome 88
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#42