Skip to content

Commit

Permalink
DataFilter InText and NotInText added
Browse files Browse the repository at this point in the history
Fix #1721
  • Loading branch information
enchev committed Oct 2, 2024
1 parent 765f5ac commit 32bb43b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Radzen.Blazor/RadzenDataFilter.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,20 @@ public virtual IQueryable<TItem> View
[Parameter]
public string DoesNotContainText { get; set; } = "Does not contain";

/// <summary>
/// Gets or sets the in operator text.
/// </summary>
/// <value>The in operator text.</value>
[Parameter]
public string InText { get; set; } = "In";

/// <summary>
/// Gets or sets the not in operator text.
/// </summary>
/// <value>The not in operator text.</value>
[Parameter]
public string NotInText { get; set; } = "Not in";

/// <summary>
/// Gets or sets the starts with text.
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Radzen.Blazor/RadzenDataFilterProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ internal string GetFilterOperatorText(FilterOperator filterOperator)
return DataFilter?.ContainsText;
case FilterOperator.DoesNotContain:
return DataFilter?.DoesNotContainText;
case FilterOperator.In:
return DataFilter?.InText;
case FilterOperator.NotIn:
return DataFilter?.NotInText;
case FilterOperator.EndsWith:
return DataFilter?.EndsWithText;
case FilterOperator.Equals:
Expand Down

0 comments on commit 32bb43b

Please sign in to comment.