I have a splitbutton in a toolbar.
I have a number of options, but I want the fist one to be the default, always; even if they user clicks on the dropdown and selets a different child button.
That is, if I have
When the user clicks on the button proper, I want Add(Local) to execute. If they click on the dropdown and select Add(Window), I want Add(Window) to execute but I want Add(Local) to remain the default button.
I'm getting it all to work, except for the last bit.
I've tried calling set_defaultButtonIndex(0) in both the ClientClicking and ClientClicked events but to no avail.
Appreciate any hints.
--
Stuart
I have a number of options, but I want the fist one to be the default, always; even if they user clicks on the dropdown and selets a different child button.
That is, if I have
<telerik:RadToolBarSplitButton CommandName="Action" EnableDefaultButton="true" DefaultButtonIndex="0" > <Buttons> <telerik:RadToolBarButton runat="server" CommandArgument="Local" Text="Local"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" CommandArgument="Window" Text="Local"> </telerik:RadToolBarButton> </Buttons> </telerik:RadToolBarSplitButton>When the user clicks on the button proper, I want Add(Local) to execute. If they click on the dropdown and select Add(Window), I want Add(Window) to execute but I want Add(Local) to remain the default button.
I'm getting it all to work, except for the last bit.
I've tried calling set_defaultButtonIndex(0) in both the ClientClicking and ClientClicked events but to no avail.
Appreciate any hints.
--
Stuart