Hello,
I'm trying to implement the row drag and drop from two different igx-grids.
I would like to add the dragged row from the first grid between two rows in the second grid.
How can I understand which line I dropped on?
Hello Philippe,
Thank you for getting back to me!
A possible approach for achieving your requirements is to take advantage of the over event of the igxDropDirective. It emits pageX and pageY arguments, which could be used in order to access the row below the ghostElement. Once you have a reference to such row you can style it the way you want. You can use the following sample as reference.
Please note that what you’re trying to achieve should be handled entirely on application level and it is beyond the scope of Infragistics Support.
Best Regards, Martin Evtimov Associate Software Developer Infragistics, Inc.
Hi,
In fact, I would like to have the same colour effect as below, but in the case of a (row)drag&drop between two grids and not in the same
Is it possible ?
Best regards
Philippe
Thank you for reaching out to me!
In order to achieve your requirements you can take advantage of the following methods: onEnterAllowed and onLeaveAllowed. Those methods are triggered when the dragged row enters/leaves the area of the target grid. You can use the following sample as reference.
If this sample is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.
Looking forward to hearing from you.
Hello Martin,
I've just seen your sample and for more information, I would like to know if it's possible to show a drop indicator color when border's edge is reached in the target grid.
Waiting for an answer,
Best regards,
Philippe DUFEIL
Hello Oscar,
Thank you for contacting Infragistics Community!
I believe you will find the following sample I have prepared for you very helpful. As you can observe within the getCurrentRowIndex method I’m retrieving the index the row should be dropped on.
Please let me know if you need any additional information.