Back to Devexpress

AutocompleteBuilder.SearchExpr(String[]) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-autocompletebuilder-dot-searchexpr-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

AutocompleteBuilder.SearchExpr(String[]) Method

Specifies the name of a data source item field or an expression whose value is compared to the search criterion. Mirrors the client-side searchExpr option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public AutocompleteBuilder SearchExpr(
    params string[] values
)

Parameters

NameTypeDescription
valuesString[]

The option value.

|

Returns

TypeDescription
AutocompleteBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Autocomplete()
    .SearchExpr(new[] { "MyExpr" })
)

See Also

AutocompleteBuilder Class

AutocompleteBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace