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

DragDrop from Datagrid to ScheduleView

3 Answers 80 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Wenjie
Top achievements
Rank 1
Wenjie asked on 16 Jul 2013, 02:28 PM
Hi All,

Do we have some sample DragDrop from Datagrid to ScheduleView? Just from Datagrid to ScheduleView,no need DragDrop back to Datagrid.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 17 Jul 2013, 01:30 PM
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
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 >>
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 :
if (dataGrid.SelectionMode.Equals(System.Windows.Controls.DataGridSelectionMode.Single))
It works.
2.There are no dragged visaul.I changed :
var visual = new Telerik.Windows.DragDrop.DragVisual();
It works.
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
Kalin
Telerik team
answered on 18 Jul 2013, 11:55 AM
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
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 >>
Tags
ScheduleView
Asked by
Wenjie
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Wenjie
Top achievements
Rank 1
Share this question
or