Click or drag to resize
KaxToolBarSplitButtonDefaultButtonIndex Property
Gets or sets the index of the button which properties will be used by default when the EnableDefaultButton property set to true.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public int DefaultButtonIndex { get; set; }

Property Value

Type: Int32
The index of the button which properties will be used by default when the EnableDefaultButton property set to true. The default value is 0
Remarks
Use the DefaultButtonIndex property to specify the button which properties KaxToolBarSplitButton will use when the KaxToolBar is initially displayed.
Examples
The following example demonstrates how to use the DefaultButtonIndex property

<kettic:KaxToolBar id="KaxToolBar1" runat="server">
<Items>
<kettic:KaxToolBarSplitButton EnableDefaultButton="true" DefaultButtonIndex="1"> <Buttons>
<kettic:KaxToolBarButton ImageUrl="~/images/red.gif" Text="Red" /> <kettic:KaxToolBarButton ImageUrl="~/images/green.gif" Text="Green" /> <kettic:KaxToolBarButton ImageUrl="~/images/blue.gif" Text="Blue" /> </Buttons>
</kettic:KaxToolBarSplitButton>/
</Items>
</kettic:KaxToolBar>

See Also