Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions blazor/datagrid/searching.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ The following example demonstrates how to set the `SearchSettings.Operator` prop

{% tabs %}
{% highlight razor tabtitle="Index.razor" %}
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.DropDowns

Expand All @@ -223,6 +224,7 @@ The following example demonstrates how to set the `SearchSettings.Operator` prop
</SfDropDownList>

<SfGrid DataSource="@Orders" Toolbar=@ToolbarItems>
<GridSearchSettings Operator="@SearchOperator"></GridSearchSettings>
<GridColumns>
<GridColumn Field=@nameof(OrderData.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(OrderData.CustomerID) HeaderText="Customer ID" Width="150"></GridColumn>
Expand All @@ -246,14 +248,6 @@ The following example demonstrates how to set the `SearchSettings.Operator` prop
public Operator Value { get; set; }
}

public enum Operator
{
StartsWith,
EndsWith,
Contains,
Equal
}

List<DropDownOrder> DropDownData = new List<DropDownOrder>
{
new DropDownOrder(){Text="StartsWith",Value= Operator.StartsWith },
Expand Down Expand Up @@ -316,7 +310,7 @@ The following example demonstrates how to set the `SearchSettings.Operator` prop
{% endhighlight %}
{% endtabs %}

{% previewsample "https://blazorplayground.syncfusion.com/embed/hZBgCXKXMPQpCngI?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/rtheMWibUKtkPFVK?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5" %}

## Search by external button

Expand Down