RadButton Dropdown content and closeing automatically

11 posts, 0 answers
  1. Niranjan
    Niranjan avatar
    23 posts
    Member since:
    Feb 2009

    Posted 18 Aug 2010 Link to this post

    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
  2. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 23 Aug 2010 Link to this post

    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
  3. DevCraft banner
  4. Niranjan
    Niranjan avatar
    23 posts
    Member since:
    Feb 2009

    Posted 06 Sep 2010 Link to this post

    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
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 08 Sep 2010 Link to this post

    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
  6. Niranjan
    Niranjan avatar
    23 posts
    Member since:
    Feb 2009

    Posted 10 Sep 2010 Link to this post

    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
  7. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 13 Sep 2010 Link to this post

    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
  8. ss
    ss avatar
    37 posts
    Member since:
    Nov 2010

    Posted 13 Apr 2012 Link to this post

    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?
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Apr 2012 Link to this post

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

  10. Rakesh
    Rakesh avatar
    23 posts
    Member since:
    May 2013

    Posted 14 May 2013 Link to this post

    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


  11. Stefan
    Admin
    Stefan avatar
    89 posts

    Posted 17 May 2013 Link to this post

    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.

  12. Rakesh
    Rakesh avatar
    23 posts
    Member since:
    May 2013

    Posted 17 May 2013 Link to this post

    Sure we can continue in the other thread. It is here if anyone needs it
Back to Top
DevCraft banner