Back to Devexpress

TreeViewBuilder.SearchExpr(String[]) Method

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

latest1.4 KB
Original Source

TreeViewBuilder.SearchExpr(String[]) Method

Specifies a data object's field name or an expression whose value is compared to the search string. Mirrors the client-side searchExpr option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeViewBuilder SearchExpr(
    params string[] values
)

Parameters

NameTypeDescription
valuesString[]

The option value.

|

Returns

TypeDescription
TreeViewBuilder

A reference to this instance after the method is called.

|

Remarks

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

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

See Also

TreeViewBuilder Class

TreeViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace