Back to Devexpress

TreeViewBuilder.VirtualModeEnabled(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-treeviewbuilder-dot-virtualmodeenabled-x28-system-dot-boolean-x29.md

latest1.4 KB
Original Source

TreeViewBuilder.VirtualModeEnabled(Boolean) Method

Enables the virtual mode in which nodes are loaded on demand. Use it to enhance the performance on large datasets. Mirrors the client-side virtualModeEnabled option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeViewBuilder VirtualModeEnabled(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

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()
    .VirtualModeEnabled(true)
)

See Also

TreeViewBuilder Class

TreeViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace