RadRibbonSplitButton Drop Down closing when Drag starts from within...

3 posts, 0 answers
  1. Lee
    Lee avatar
    14 posts
    Member since:
    Nov 2009

    Posted 30 Apr 2010 Link to this post

    Hello,

    I have a RadRibbonSplitButton, whose DropDown Content is set to a plain UserControl housing only a single ListBox and a single 'Accept' button. This ListBox has some drag/drop code written to allow drag/drop of a row to another position within the same ListBox. Essentially, just repositioning a row within the ListBox to another position. When 'Accept' is pushed, I use the order of the rows in logic elsewhere in the app. If the context menu is clicked out of it disappears correctly, and if the user never clicks outside of the control, they are able to effectively select listbox items as they like, and drag/drop the listbox items to whatever positions they desire, all with the RadRibbonSplitButton drop down staying open until the 'Accept' button is pressed or the user clicks somewhere besides the drop down.

    My problem, is that in WPF, anytime I clicked within the listbox, the RadRibbonSplitButton closes, (I believe a routed event may be getting handled here from the ListBoxItem Selection, and RadRibbonSplitButton handles that and closes the drop down) I set 'KeepOpen' to true, to get around this in WPF.

    But whenever a Drag is initiated from one of these ListBox Items, the drag cue is displayed correctly and hovers while I drag, but the RadRibbonSplitButton drop down closes immediately. (So there is no List Box showing for me to reposition the ListBox Item being dragged)

    I noticed this thread http://www.telerik.com/community/forums/wpf/draganddrop/drag-and-drop-between-a-window-and-a-popup.aspx, which notes that you cannot drag/drop between pop ups, but in my scenario I am just dragging/dropping within a single RadRibbonSplitButton drop down...

    Do you have any suggestions that might help me achieve the functionality I am after, having the RadRibbonSplitButton drop down remain open until the 'Accept' button is pressed, or until the user clicks outside of the drop down. Not closing immediately, when a drag is initiated from within the drop down's ListBox?

    Thanks for any help you can give!

    - Lee
  2. Lee
    Lee avatar
    14 posts
    Member since:
    Nov 2009

    Posted 30 Apr 2010 Link to this post

    Also, forgot to mention, this works fine for me in Silverlight, and I do not even have to set the 'KeepOpen' to true.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 06 May 2010 Link to this post

    Hi Lee,

    We already answered the the support ticket you raised, however I will paste the answer here as well:

    Thank you for reporting the issue.

    Indeed the button's drop-down area is implemented with a popup element, and the issue is because of this one. However we logged this issue in our online tracking system and you can track its state here.

    Kind regards,
    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.
Back to Top