Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
MouseMove event is not fired
posted

Hi,

I'm trying to implement my own simple Drag and Drop functionality on an XamDataGrid. I need to drag multiple records(all selected records), after right mouse down and mouse moving a defined delta X or Y distance. I cant manage this, because after right mouse down and holding right mouse down no other events are fired.

I also tryed it with the Preview Events, without success.

MouseRightButtonUp is also not fired, why?

I'm using Infragistics WPF 15.1.20151.2055

Sample Project is attached.

Maybe someone can tell me what I'm doing wrong? or what can be the solution?

Thanks

XamDataGrid_DragAndDrop.zip
Parents
No Data
Reply
  • 16495
    Offline posted

    Hello Florian,

     

    Thank you for your post.

     

    I have been looking into it and the sample application you have attached and I am not sure that I understand correctly your requirements. It seems that currently our XamDataGrid does not support built-in the functionality for dragging multiple records.

     

    Would you please provide me with some more details about what you are trying to achieve. You can take a look at the following forum thread, where similar functinality was discussed:

     

    http://ko.infragistics.com/community/forums/t/62066.aspx

     

    I have updated the sample application  you have provided, in order to  show you a possible approach for implementing drag and drop of a multiple records of the XamDataGrid to other grid, by using MouseRightButtonDown event. Basically I get the selected records from SelectedRecords collection of main grid in the event handler of MouseRightButtonDown. I handled the Drop event of the grid which  used for container and    added the selected records from main grid. Please let me know if I am missing something from your scenario.

     

    Looking forward to earing from you.

    XamDataGrid_DragAndDropUpdated.zip
Children