This is a migrated thread and some comments may be shown as answers.

Make split button behave like dropdown

1 Answer 77 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 10 Sep 2009, 11:16 AM
HI Everyone,

At the moment I have a split button on my toolbar with two options:

Format HTML
Format Text

By default the Format HTML is selected and displayed on the toolbar.
When a user selects Format Text a postback occurs and the Toolbar split button is updated to display the Format Text image.
Is there a way to stop a postback from occuring when the user clicks the split button?, I only want a postback to occur when the user makes a selection from the dropdown list.

I know that this is how the DropDown button operates but I can't use it as it does not update the Image displayed on the toolbar when a user makes a selection.

Any help would be appreciated

Antony


1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Sep 2009, 02:02 PM
Hi Antony,

Please subscribe to OnClientButtonClicking event and check whether the dropdown is open like this:

function buttonClicking(sender, args) { 
    if (!args.get_item().get_parent()._isDropDownVisible) 
        args.set_cancel(true); 

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ToolBar
Asked by
Antony
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or