3 Answers, 1 is accepted
0
Hello Wenjie,
We have prepared a sample project demonstrating a DragDrop behavior implementation between DataGrid and ScheduleView. Please note that in this example the DragDrop is allowed in the both ways - from/to ScheduleView and from/to DataGrid. In order to disable DragDrop from SheduleView to DataGrid you should modify the CanDrop method in the DataGridDragDropBehavior class to always return false.
Hope this helps.
Regards,
Kalin
Telerik
We have prepared a sample project demonstrating a DragDrop behavior implementation between DataGrid and ScheduleView. Please note that in this example the DragDrop is allowed in the both ways - from/to ScheduleView and from/to DataGrid. In order to disable DragDrop from SheduleView to DataGrid you should modify the CanDrop method in the DataGridDragDropBehavior class to always return false.
Hope this helps.
Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0

Wenjie
Top achievements
Rank 1
answered on 18 Jul 2013, 12:30 AM
Hi Kalin,
Thanks.It works.But some bugs:
1.When I set DataGrid to single mode,It not working. I changed :
It works.
2.There are no dragged visaul.I changed :
It works.
3. Touch are not work on DataGrid,even i set to
On Win 8 It work once. look like when tap there no seleted row on DateGrid row.
Thanks.It works.But some bugs:
1.When I set DataGrid to single mode,It not working. I changed :
if (dataGrid.SelectionMode.Equals(System.Windows.Controls.DataGridSelectionMode.Single))
2.There are no dragged visaul.I changed :
var visual = new Telerik.Windows.DragDrop.DragVisual();
3. Touch are not work on DataGrid,even i set to
<
Setter
Property
=
"telerik:DragDropManager.TouchDragTrigger"
Value
=
"TapAndHold"
/>
or
<
Setter
Property
=
"telerik:DragDropManager.TouchDragTrigger"
Value
=
"TapDown"
/>
On Win 8 It work once. look like when tap there no seleted row on DateGrid row.
0
Hello Wenjie,
Unfortunately our DragDropManager doesn't support touch on regular controls as it depends on a specific part of the control which is present only in our controls. However I would suggest that you use RadGridView instead of DataGrid in order to have a complete touch support between the two controls out of the box. For better experience I can also recommend that you use the Windows8 or Windows8 themes which are designed for touch devices. Please check the attached sample project which supports touch DragDrop between GridView and ScheduleView.
I hope this will help you.
Regards,
Kalin
Telerik
Unfortunately our DragDropManager doesn't support touch on regular controls as it depends on a specific part of the control which is present only in our controls. However I would suggest that you use RadGridView instead of DataGrid in order to have a complete touch support between the two controls out of the box. For better experience I can also recommend that you use the Windows8 or Windows8 themes which are designed for touch devices. Please check the attached sample project which supports touch DragDrop between GridView and ScheduleView.
I hope this will help you.
Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>