RadDropDownButton in RadToolBar not closing on Button Click

4 posts, 0 answers
  1. Oliver
    Oliver avatar
    36 posts
    Member since:
    Apr 2011

    Posted 03 Jun 2011 Link to this post

    I'm using a RadDropDownButton in a RadToolBar. My problem is that the DropDown Part is not closing when one of the Buttons in the DropDown Content is clicked.

    <telerik:RadDropDownButton Width="64" Height="64" Padding="0" CloseOnEscape="True" CloseOnEnter="True"  KeepOpen="False">
    <Image Source="../Images/movies.png" Style="{StaticResource ToolbarButtonImage}"></Image>

    <telerik:RadButton Height="48" Command="{Binding TestCmd}">
    <Image Source="../Images/test.png"></Image>

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 08 Jun 2011 Link to this post

    Hello Oliver,

    This is the default behavior of the RadDropDownButton control. In order to close it when clicking an item from its DropDownContent, you need to manually set the DropDownButton.IsOpen property to false. In your case you can use the commands of the DropDownContent Buttons to close the RadDropDownButton.

    Also your suggestion is added in our PITS as a feature request and you can vote for it thus increasing its priority.

    Best wishes,
    Tina Stancheva
    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
  3. DevCraft banner
  4. Bob
    Bob avatar
    2 posts
    Member since:
    Oct 2010

    Posted 16 Dec 2013 Link to this post


    this is a close a topic as I could find related to my issue.  I have a RadToolBarDropDown as defined below




    telerik:RadToolBarDropDown ID="print" Text="Print..." ImageUrl="~/images/icons/print.gif" ImagePosition="Left" ToolTip="Choose a print method" runat="server" CssClass="noPrint">








    <telerik:RadToolBarButton Text="Print As Shown" ImageUrl="~/images/icons/print.gif" ImagePosition="Left" CommandName="Print" ToolTip="Print Preview" ></telerik:RadToolBarButton>




    <telerik:RadToolBarButton Text="Print Like RGOM" ImageUrl="~/images/icons/print.gif" ImagePosition="Left" CommandName="PrintDecs" ToolTip="Print in DECS RGOM format" ></telerik:RadToolBarButton>




    <telerik:RadToolBarButton Text="Print Like RGOL" ImageUrl="~/images/icons/print.gif" ImagePosition="Left" CommandName="PrintDecsL" ToolTip="Print in DECS RGOL format" ></telerik:RadToolBarButton>









    When the Print As Shown button is clicked, the following Javascript code is invoked:














    The issue is that the dropdown is still open, so it obscures the column headings in the grid below, and my users get upset.  I found this below online, but it didn't work. Any suggestions?












    "<%= print.ClientID %>").hideDropDown();










  5. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 19 Dec 2013 Link to this post

    Hi Bob,

    This forum is actually targeting the Silverlight platform and this is why the suggestions here are targeting the buttons we provide for Silverlight.

    Therefore your questions will be better handled in the Telerik AJAX forums. However, as you already waited a while for a response and you have posted your code and description I decided to go ahead and create a ticket on your behalf. You can find the new ticket under your telerik account - its id is 770341. The ticket comes with a guaranteed 24hour response time and the ASP.NET AJAX support team will contact you in that time frame with more information or questions.

    I hope that will help you resolve the issue more quickly.

    Tina Stancheva
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top