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

Close SplitButton Dropdown Client-Side

1 Answer 72 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 13 May 2009, 06:12 PM
Hi, I have a splitbutton on the toolbar that calls the following function:

  function ToolbarButtonClicked(sender, args)  
  {                
      ValidateFields(button.get_toolTip()) 
      args.set_cancel(true); 
  }   


As you can see I cancel the action in order to execute a javascript function instead of doing a postback. But once this function executes the dropdown menu for the splitbutton is still open. I've looked at the SDK documentation but I can't seem to find a way to close this menu client-side. Can you help me?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 May 2009, 11:34 AM
Hello Andrew,

The splitbutton should close even if you cancel the OnClientButtonClicking event. Can you send us the complete code of your implementation so we can test it locally?

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolBar
Asked by
Andrew
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or