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

Can't drag from ListBox

10 Answers 234 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
francois
Top achievements
Rank 1
francois asked on 28 Jul 2011, 09:39 PM
Hello,

I'm doing a small project and just upgraded to the latest version of WPF telerik control. In my project I had some drag and drop between grid and listbox. Pretty much the same as the one in the demo (http://demos.telerik.com/silverlight/#DragAndDrop/TreeToGrid) this one but the wpf version. I used to be able to drag my item from the list without any problem but now it just doesn't work. The new WPF demo does not seem to work too.

Any ideas to what is wrong?

thank you very much

10 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 01 Aug 2011, 12:58 PM
Hi Francois,

Please, try setting this attached property to True on these ListBoxItem instances that you are going to drag: Telerik.Windows.DragDrop.DragDropManager.AllowCapturedDrag. The easiest way to achieve this is to use a style like this:
<Style TargetType="ListBoxItem" >
          <Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True" />
          <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>

Please, do not hesitate to contact us if any further inquiries occur.

Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
francois
Top achievements
Rank 1
answered on 01 Aug 2011, 04:32 PM
Hi Ivan,

thank you for you quick answer, but is this suppose to work for the WPF control?

Telerik.Windows.DragDrop.DragDropManager.AllowCapturedDrag does not exists in the assembly that I have. Maybe I have the wrong version but the online help doesn't state a properties by that name either.

http://www.telerik.com/help/wpf/telerik.windows.controls-telerik.windows.dragdrop.dragdropmanager_members.html


Regards,

François
0
Tsvyatko
Telerik team
answered on 01 Aug 2011, 05:16 PM
Hello Francois,

 DragDropManager.AllowCapturedDrag is relatively new property available after version 2011.2.718. It is used in scenarios in which we need to perform drag drop operations on control that captures the mouse and interferes with drag drop framework execution (as in WPF listbox). We are currently updating our help articles as well in order to include this information as well.

Kind regards,
Tsvyatko
the Telerik team

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

0
francois
Top achievements
Rank 1
answered on 01 Aug 2011, 05:59 PM
Hi Ivan,

thank you for you quick response. I will try to apply the latest hot fix and try your solution.

Regards,

François
0
francois
Top achievements
Rank 1
answered on 01 Aug 2011, 06:36 PM
Hi Ivan,

I tried to upgrade to the latest version available and I still can't see that propertie. I downloaded 2011.2.0725 for .NET 3.5

is this property only available while using .NET 4.0 ? My project can only use .NET 3.5

Regards,

François
0
Accepted
Ivan Ivanov
Telerik team
answered on 03 Aug 2011, 09:15 AM
Hello Francois,

It is available in 2011.2.725 for .NET 3.5. I am attaching a screenshot that provides some more extensive information of its location.

Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
francois
Top achievements
Rank 1
answered on 03 Aug 2011, 06:40 PM
Thank you for your time.

The solution you provided solves my problem :)

Regards,

Francois
0
Ronald
Top achievements
Rank 1
answered on 11 Aug 2011, 01:12 PM
Hi,

i have basically the same problem (drag doesn't work from list box in WPF). I have downloaded the hotfix 2011.2.0808 for WPF for .net 4.0. However the AllowCaptureDrag property is not available as you can see in the screenprint. Am i doeing something wrong here or has the new property disappeared?

TIA
Ronald Steenbergen
0
francois
Top achievements
Rank 1
answered on 11 Aug 2011, 01:43 PM
Hi Ronald,

the property can be found under Telerik.Windows.DragDrop.DragDropManager

you are currently looking at Telerik.Window.Controls.DragDrop.RadDragAndDropManager

I made the same mistake at first ;)

François
0
Ronald
Top achievements
Rank 1
answered on 11 Aug 2011, 02:44 PM
Hi François

Indeed, you are so right. I feel stupid...

Ronald
Tags
DragAndDrop
Asked by
francois
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
francois
Top achievements
Rank 1
Tsvyatko
Telerik team
Ronald
Top achievements
Rank 1
Share this question
or