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

RadDropDownButton in RadToolBar not closing on Button Click

3 Answers 303 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 03 Jun 2011, 11:26 AM
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">
<telerik:RadDropDownButton.Content>
<Image Source="../Images/movies.png" Style="{StaticResource ToolbarButtonImage}"></Image>
</telerik:RadDropDownButton.Content>


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


3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 08 Jun 2011, 01:44 PM
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
0
Bob
Top achievements
Rank 1
answered on 16 Dec 2013, 09:17 PM
Tina,

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">

 

 

 

<Buttons>

 

 

 

<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>

 

 

 

</Buttons>

 

 

 

</telerik:RadToolBarDropDown>

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

 

case

 

 

"Print":self.print();

 

args.set_cancel(

 

true);

 

 

 

break;

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?

 

 

 


 

case

 

 

"Print":

 

$find(

 

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

 

args.set_cancel(

 

true);

 

 

 

break;

 

0
Tina Stancheva
Telerik team
answered on 19 Dec 2013, 05:06 PM
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.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
Tags
Buttons
Asked by
Oliver
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Bob
Top achievements
Rank 1
Share this question
or