radtoolbar button closes on child click

2 posts, 0 answers
  1. Doug R
    Doug R avatar
    3 posts
    Member since:
    Oct 2010

    Posted 26 Oct 2010 Link to this post

    Please see attached. When I click on the dropdown list inside the radtoolbarbutton itemtemplate, the entire toolbarbutton closes. How do I keep it open? I only want it to close if the user clicks outside of the radtoolbarbutton area.

  2. Yana
    Yana avatar
    4995 posts

    Posted 28 Oct 2010 Link to this post

    Hi Doug,

    Here is a simple solution of this issue:

    - subscribe to OnClientDropDownClosing event of the toolbar and cancel it in case a combobox item is clicked:

    <telerik:RadToolBar ID="RadToolBar1" runat="server" OnClientDropDownClosing="dropDownClosing">
                    <telerik:RadToolBarButton Text="item1">
                            <asp:TextBox ID="TextBox1" runat="server" Text="test test" />
                            <telerik:RadComboBox ID="RadCOmboBox1" runat="server" ZIndex="9001">
                                    <telerik:RadComboBoxItem Text="item1" />
                                    <telerik:RadComboBoxItem Text="item2" />

    and here is the event handler:

    function dropDownClosing(sender, args) {
        if (args.get_domEvent().srcElement.className.indexOf("rcbHovered") > -1)

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top