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

RadButton Dropdown content and closeing automatically

10 Answers 285 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Niranjan
Top achievements
Rank 1
Niranjan asked on 18 Aug 2010, 08:00 AM
Hi

I am using RadSplitbutton and Dropdown content. When something is selected from drop down, I want to display user a message.
Based on the response I want to show the content in splitbutton.

Something similar to the sample provided in demo - http://demos.telerik.com/silverlight/#Buttons/SplitButton

In this example, when dropdown is selected , "quickFind_Click"  event gets fired. In this event, i want to display confirmation messagebox. The issue is when the messagebox is displayed "drop down window" is still visible. Is it possible to close this drop down popup window before message gets displayed. Some how it is not working by chaniging is isopen property to false.

Regards
Rajesh

10 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 23 Aug 2010, 11:59 AM
Hi Niranjan,

Attached is a sample project. Could you please examine it and tell me if it works for you?

On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Sincerely yours,
Viktor Tsvetkov
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
Niranjan
Top achievements
Rank 1
answered on 06 Sep 2010, 03:44 PM
Hi Viktor Tsvetkov

I don't think, this is going to help. Using dispatcher the message box will get displayed. The message box displayed with options "Ok" & "Cancel".

Where one should write the code for handling ok and cancel buttons ?

-Regards
Rajesh
0
Viktor Tsvetkov
Telerik team
answered on 08 Sep 2010, 03:59 PM
Hello Niranjan,

This was just an example that shows you how to close the dropdown content of the RadSplitButton. You can display your custom message box or whatever you need.

Kind regards,
Viktor Tsvetkov
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
Niranjan
Top achievements
Rank 1
answered on 10 Sep 2010, 05:49 AM
Hi

The same thing happens with combo box also. When message is displayed in selection changed event, the messagebox and dropdown window both are visible.

Is it possible that before selection changed event, some other event gets fired where i can display a message box ( at the same time the drop down should be closed ) and setting some value in that event, either causes selection changed event gets fired or not ...

-Rajesh
0
Viktor Tsvetkov
Telerik team
answered on 13 Sep 2010, 07:45 PM
Hi Niranjan,

Could you please be more descriptive in what you want to achieve? As I understand, you want to call some event, display a message box and then change the selection of a RadComboBox, so the SelectionChanged event get fired. Could you verify if this is what you want, or please expalin it better than me?

Regards,
Viktor Tsvetkov
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
ss
Top achievements
Rank 1
answered on 13 Apr 2012, 07:34 AM
HI,

I am using radsplitbutton with dropdowncontent.
dropndowncontent had a contextmenu with some menuitems.
when i select the menuitem i am doing my required work with commnds which r binding to menuitems.but after selecting the menuitem the dropdown content not getting close.its still open.

when i clcik on next control its not closing.

and its closing after click on down arrow in the radslitbutton.

but i need immideate close after seleting the menuite,.could you plx help on this?
0
Tina Stancheva
Telerik team
answered on 17 Apr 2012, 02:28 PM
Hi,

The RadSplitButton doesn't automatically close when you select an item in its DropDownContent and this is why you need to set its IsOpen property to False when you need to close it. In a databound scenario you can bind the IsOpen property of the button to a business property which value can be changed through the menu items command.

However clicking outside the control and its DropDownContent should close the popup menu out-of-the-box. So if you're experiencing issues with that, it would be best to send us a small sample that we can test on our side.

Also please keep in mind that the RadContextMenu is designed to work as a context menu and open on a right button click. This is why using it in a RadSlitButton may lead to issues and we'd recommend using the RadMenu control instead.

 I attached a sample solution where the RadMenu control is used in the DropDownContent of the RadSplitButton and the RadMenuItem.Commands implementation closes the SplitButton DropDown popup. Please have a look at it and let me know if it helps.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rakesh
Top achievements
Rank 1
answered on 14 May 2013, 08:25 PM
Hi I have the same problem and here is my post. Can you please let me know if any changes are required to solve this issue.
http://www.telerik.com/community/forums/wpf/buttons/radsplit-button-with-dropdown-content-as-radcontextmenu-with-subitems.aspx#2619295


0
Stefan
Telerik team
answered on 17 May 2013, 11:31 AM
Hello Rakesh,

I answered your question in the other forum thread you posted. May I ask you to continue the conversation in it?

Thanks in advance.

All the best,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rakesh
Top achievements
Rank 1
answered on 17 May 2013, 04:57 PM
Sure we can continue in the other thread. It is here if anyone needs it
Tags
Buttons
Asked by
Niranjan
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Niranjan
Top achievements
Rank 1
ss
Top achievements
Rank 1
Tina Stancheva
Telerik team
Rakesh
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or