Grid row reordering works fine when gird first loaded. But when new rows added to the data, i cant reorder the newly added rows to another index, the rowReorder event is not firing.Im using `kendoGridInCellEditing` and `editService`.
Slavena
Telerik team
commented on 01 Dec 2023, 02:51 PM
Hi Merlin,
I tried reproducing the reported behavior, but to no avail. The rowReorder event is firing correctly when dragging newly added records:
Could you please provide us with more details regarding the exact Grid configuration. Additionally, a runnable example or an archived project that demonstrates the described discrepancy would help us further investigate and propose a suitable solution.
Thank you for your cooperation in advance. I am looking forward to your reply.
If the data collection is not updated, the Grid will not be notified that new records have been added, and thus will not execute the logic for determining which elements are drag and drop targets. This would lead to the newly added records not being registered as drag and drop targets and they will not fire events.
I hope this sheds some light on the matter. Let me know if further assistance is required on this case.
Hi Merlin,
I tried reproducing the reported behavior, but to no avail. The rowReorder event is firing correctly when dragging newly added records:
https://stackblitz.com/edit/angular-j3eipg?file=src%2Fapp%2Fapp.component.ts
Could you please provide us with more details regarding the exact Grid configuration. Additionally, a runnable example or an archived project that demonstrates the described discrepancy would help us further investigate and propose a suitable solution.
Thank you for your cooperation in advance. I am looking forward to your reply.
Hi Slavena,thanks for your detailed explaination .I found if i change
to
Then the newly added records will not fire rowReorder event.
Is the extra map and process from editService to view mandatory?