Back to Devexpress

MultiViewBuilder.SelectedItem(Object) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-multiviewbuilder-dot-selecteditem-x28-system-dot-object-x29.md

latest1.3 KB
Original Source

MultiViewBuilder.SelectedItem(Object) Method

The selected item object. Mirrors the client-side selectedItem option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public MultiViewBuilder SelectedItem(
    object value
)

Parameters

NameTypeDescription
valueObject

The option value.

|

Returns

TypeDescription
MultiViewBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().MultiView()
    .SelectedItem(Model.MySelectedItem)
)

See Also

MultiViewBuilder Class

MultiViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace