Back to Devexpress

LookupBuilder.SearchMode(DropDownSearchMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-lookupbuilder-dot-searchmode-x28-devextreme-dot-aspnet-dot-mvc-dot-dropdownsearchmode-x29.md

latest1.3 KB
Original Source

LookupBuilder.SearchMode(DropDownSearchMode) Method

Specifies a comparison operation used to search UI component items. Mirrors the client-side searchMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public LookupBuilder SearchMode(
    DropDownSearchMode value
)

Parameters

NameTypeDescription
valueDropDownSearchMode

The option value.

|

Returns

TypeDescription
LookupBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().Lookup()
    .SearchMode(DropDownSearchMode.Contains)
)

See Also

LookupBuilder Class

LookupBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace