[Bug]: DataGridDateColumn filter not working properly #5866
Labels
Type: Bug 🐞
Something isn't working
Type: Possible Bug
Needs to investigate more to see if it's an actual bug.
Blazorise Version
1.6 1.7
What Blazorise provider are you running on?
Bootstrap5
Link to minimal reproduction or a simple code snippet
https://blazorise.com/docs/extensions/datagrid/columns
Steps to reproduce & bug description
There seems to be an issue when using the filter on DataGridDateColumn , if the column contains date + time then it cannot filter. Happens both on default (datepicker) and native date selection. Only when datepicker is used it might work, then time can be entered in the filter but not picked. This can be seen on the blazorise demo page. The date of birth column has time included which cannot be selected in the filter. And when applying the filter the result is always empty.
Please also add more documentation for the datepicker option in DataGridDateColumn.
What is expected?
If only a date is choosen in the filter then only date should be compared and the time part should be ignored. Perhaps this requires an additional option in DataGridDateColumn
What is actually happening?
filter does not work properly
What browsers do you see the problem on?
Microsoft Edge, Chrome
Any additional comments?
I created a custom filter as a workaround which seems to fix it. However in some cases i noticed that the filter gets a time component when i do not expect it. The column value is DateOnly but it still shows the time in the filter. I will try to make a simple example to see where this goes wrong
The text was updated successfully, but these errors were encountered: