TreeListBuilder<T>.SelectedRowKeys(IEnumerable) Method
Allows you to select rows or determine which rows are selected. Mirrors the client-side selectedRowKeys option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public TreeListBuilder<T> SelectedRowKeys(
IEnumerable value
)
Parameters
Name | Type | Description |
---|---|---|
value | IEnumerable | The option value. |
Returns
Type | Description |
---|---|
TreeListBuilder<T> | A reference to this instance after the method is called. |
Remarks
Use the following notation to set the option’s value:
@(Html.DevExtreme().TreeList()
.SelectedRowKeys(new object[] { 1, 2, 3 })
)
See Also