Click or drag to resize
KaxToolBarSplitButtonEnableDefaultButton Property
Gets or sets a value, indicating if the KaxToolBarSplitButton will use the DefaultButton behavior.

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

Property Value

Type: Boolean
A value, indicating if the KaxToolBarSplitButton wll use the DefaultButton behavior. The default value is true
Remarks

Use the EnableDefaultButton property to set if KaxToolBarSplitButton will use the DefaultButton behavior or not. When the DefaultButton behavior is used, the KaxToolBarSplitButton properties are ignored and the properties of the last selected button are used instead. Use the EnableDefaultButton property in conjunction with the DefaultButtonIndex property to specify which of the KaxToolBarSplitButton child buttons will be used when the KaxToolBar is initially displayed.

Examples
The following example demonstrates how to use the EnableDefaultButton 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