mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
DataFilter In/NotIn filter operators support added
This commit is contained in:
@@ -1213,6 +1213,16 @@ namespace Radzen
|
||||
|
||||
index++;
|
||||
}
|
||||
else if (comparison == "In" || comparison == "NotIn")
|
||||
{
|
||||
if (IsEnumerable(column.FilterPropertyType) && column.FilterPropertyType != typeof(string))
|
||||
{
|
||||
filterExpressions.Add($@"{(comparison == "NotIn" ? "!" : "")}{property}.Any(i => i in @{index})");
|
||||
filterValues.Add(new object[] { filter.FilterValue });
|
||||
|
||||
index++;
|
||||
}
|
||||
}
|
||||
else if (!(IsEnumerable(column.FilterPropertyType) && column.FilterPropertyType != typeof(string)))
|
||||
{
|
||||
var value = filter.FilterValue;
|
||||
|
||||
Reference in New Issue
Block a user