Back to Devexpress

TabPanelBuilder.SelectedIndex(Int32) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-tabpanelbuilder-dot-selectedindex-x28-system-dot-int32-x29.md

latest1.3 KB
Original Source

TabPanelBuilder.SelectedIndex(Int32) Method

The index of the currently displayed item. Mirrors the client-side selectedIndex option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TabPanelBuilder SelectedIndex(
    int value
)

Parameters

NameTypeDescription
valueInt32

The option value.

|

Returns

TypeDescription
TabPanelBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().TabPanel()
    .SelectedIndex(10)
)

See Also

TabPanelBuilder Class

TabPanelBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace