DragDrop from Datagrid to ScheduleView

4 posts, 0 answers
  1. Wenjie
    Wenjie avatar
    35 posts
    Member since:
    Mar 2013

    Posted 16 Jul 2013 Link to this post

    Hi All,

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

    Thanks.
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 17 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Wenjie
    Wenjie avatar
    35 posts
    Member since:
    Mar 2013

    Posted 17 Jul 2013 Link to this post

    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.

  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 18 Jul 2013 Link to this post

    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 >>
Back to Top