darg a cell and dropp it into another cell

5 posts, 0 answers
  1. Mohammad
    Mohammad avatar
    4 posts
    Member since:
    Jul 2017

    Posted 09 Jul 2017 Link to this post

    Hi 

    I've got a radGridView like this below

    Now I wanna drag a cell and it's value, like that is significanted by red line, and drop it into a vacant cell

    would you please help me .. It's very essential and emergency

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3532 posts

    Posted 10 Jul 2017 Link to this post

    Hello Mohammad, 

    Thank you for writing.  

    RadGridView handles the whole drag and drop operation by its RadGridViewDragDropService. The PreviewDragOver event allows you to control on what targets the row being dragged can be dropped on. The PreviewDragDrop event allows you to get a handle on all the aspects of the drag and drop operation, the source (drag) grid, the destination (target) control, as well as the row being dragged. 

    The PreviewDropTarget event fires when you have a drop target. In the PreviewDropTargetEventArgs you have access to the DragInstance and HitTarget. It is possible to change the drop target by the PreviewDropTargetEventArgs.DropTarget property to be the cell element, not the row. This target will be used for the PreviewDragOver event.

    The following help articles are quite useful on this topic:

    http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/raddragdropservice
    http://docs.telerik.com/devtools/winforms/gridview/drag-and-drop/radgridviewdragdropservice
    http://docs.telerik.com/devtools/winforms/gridview/rows/drag-and-drop

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Mohammad
    Mohammad avatar
    4 posts
    Member since:
    Jul 2017

    Posted 11 Jul 2017 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Hi

    tnx my friend but I'm a little bit bewildered now !

    I can't understand how it works !

    would you plz help me a little bite more by details 

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3532 posts

    Posted 11 Jul 2017 Link to this post

    Hello Mohammad, 

    Thank you for writing back. 

    Following the demonstrated approach in the referred help articles, I have prepared a sample project which result is illustrated in the attached gif file.

    Could you please share your feedback about the referred help articles in my previous post and what was confusing for implementing the custom drag and drop operation? Thus, we would be able to address the problems accordingly. Thank you in advance. 

    I hope this information helps. 
     Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Mohammad
    Mohammad avatar
    4 posts
    Member since:
    Jul 2017

    Posted 16 Jul 2017 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Hello dear Dess

    It was great and solved my problem !

    thanks a lot

Back to Top