radzenhq/radzen-blazor

Advanced Numeric Filter Issue On Demo & Hosted Environment

kerajel opened this issue · 0 comments

Reproduced on Demo

To reproduce
Go to 'DataGrid Advanced Filter Mode' demo
Define filter on 'Id' column: Equals 1 (first advanced filter input) OR Equals 2 (second advanced filter input)
Press 'Apply'

Expected result
Entries with ids 1 and 2 are filtered

Actual result
Entry with id 2 is filtered

Press 'Clear'

Expected result
Filter on 'Id' column is reset

Actual result
Filter on 'Id' column is set to filter on 'Id' = 1

Reproduced on Hosted Environment

The similar behavior is observed on our hosted stand where we have the on-demand 'LoadData' event

Prerequisites
RadzenDataGrid with advanced filtering, numeric columns, explicit 'LoadData' event

To reproduce

Negative case
Define an advanced filter on a numeric column, e.g.:
'Id' = 1 (first advanced filter input) OR 'Id' = 2 (second advanced filter input)
Click apply directly after typing in '2'

Expected result
Entries with ids '1' and '2' are filtered

Actual result
Only entry with 'Id' = 1 is filtered, if the filter is reopened, the '2' value in the second input is lost

Positive case
Define an advanced filter on a numeric column, e.g.:
'Id' = 1 OR 'Id' = 2
Do not click 'Apply' right away, focus filter's frame by clicking on it
Click 'Apply'

Expected result = Actual result
Entries with ids '1' and '2' are returned

Related commits: 0b3628e, 652e08e

Radzen.Blazor Version=5.6.8