Close SplitButton Dropdown Client-Side

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 13 May 2009 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top