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

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

2 Answers 90 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 01 May 2010, 12:19 AM
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 Answers, 1 is accepted

Sort by
0
Lee
Top achievements
Rank 1
answered on 01 May 2010, 12:22 AM
Also, forgot to mention, this works fine for me in Silverlight, and I do not even have to set the 'KeepOpen' to true.
0
Tina Stancheva
Telerik team
answered on 06 May 2010, 11:38 AM
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.
Tags
DragAndDrop
Asked by
Lee
Top achievements
Rank 1
Answers by
Lee
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or