Back to Devexpress

TreeListBuilder<T>.ParentIdExpr(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-treelistbuilder-1-dot-parentidexpr-x28-system-dot-string-x29.md

latest1.3 KB
Original Source

TreeListBuilder<T>.ParentIdExpr(String) Method

Specifies which data field provides parent keys. Mirrors the client-side parentIdExpr option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeListBuilder<T> ParentIdExpr(
    string value
)

Parameters

NameTypeDescription
valueString

The option value.

|

Returns

TypeDescription
TreeListBuilder<T>

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().TreeList()
    .ParentIdExpr("MyExpr")
)

See Also

TreeListBuilder<T> Class

TreeListBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace