Back to Devexpress

TabsBuilder.SelectedIndex(Int32) Method

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

latest1.2 KB
Original Source

TabsBuilder.SelectedIndex(Int32) Method

The index of the currently selected UI component item. Mirrors the client-side selectedIndex option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TabsBuilder SelectedIndex(
    int value
)

Parameters

NameTypeDescription
valueInt32

The option value.

|

Returns

TypeDescription
TabsBuilder

A reference to this instance after the method is called.

|

Remarks

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

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

See Also

TabsBuilder Class

TabsBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace