DateFilter in DataGrid can not be cleared by using backspace/delete. #884

Open
opened 2026-01-29 17:45:48 +00:00 by claunia · 0 comments
Owner

Originally created by @johanpolak on GitHub (Jun 14, 2023).

Describe the bug
The filter value in the datefilter in a datagrid with FilterMode set to SimpleWithMenu can only be cleared bij clicking on the clear-icon. Removing the value with backspace/delete does not affect the filter value and the last known filter value will be restored when leaving the field.

To Reproduce
Steps to reproduce the behavior:

  1. Create a datagrid with FilterMode set to SimpleWithMenu and AllowFilterDateInput set to true and with at least one column with datatype DateTime.
  2. Run the application and filter the grid in the datetime-column.
  3. Try to clear the filter value by using backspace/delete, then leave the filterfield.
  4. The last known value is restored in the filterfield.

Expected behavior
After clearing the field by using backspace/delete the filtervalue should be set to null and this should be applied to the datagrid.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: latest
Originally created by @johanpolak on GitHub (Jun 14, 2023). **Describe the bug** The filter value in the datefilter in a datagrid with FilterMode set to SimpleWithMenu can only be cleared bij clicking on the clear-icon. Removing the value with backspace/delete does not affect the filter value and the last known filter value will be restored when leaving the field. **To Reproduce** Steps to reproduce the behavior: 1. Create a datagrid with FilterMode set to SimpleWithMenu and AllowFilterDateInput set to true and with at least one column with datatype DateTime. 2. Run the application and filter the grid in the datetime-column. 3. Try to clear the filter value by using backspace/delete, then leave the filterfield. 4. The last known value is restored in the filterfield. **Expected behavior** After clearing the field by using backspace/delete the filtervalue should be set to null and this should be applied to the datagrid. **Desktop (please complete the following information):** - OS: Windows - Browser: Chrome - Version: latest
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#884