Back to Devexpress

TreeViewBuilder.DisabledExpr(String) Method

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

latest1.4 KB
Original Source

TreeViewBuilder.DisabledExpr(String) Method

Specifies the name of the data source item field whose value defines whether or not the corresponding UI component item is disabled. Mirrors the client-side disabledExpr option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeViewBuilder DisabledExpr(
    string value
)

Parameters

NameTypeDescription
valueString

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()
    .DisabledExpr("MyExpr")
)

See Also

TreeViewBuilder Class

TreeViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace