Hello,
I have added a grid in my Angular project and I use the copy/paste function.
The grid works in batch mode and with cell selection.
When I add rows at the bottom of the grid, the copy does not work on the added rows. In the rest of the grid, where there are the old rows, it works correctly.
How can I solve this problem?
Hi Thomas,
Greetings from Syncfusion support.
Thank you for bringing this issue to our attention. We apologize for any inconvenience caused. We are currently investigating the reported scenario of "Copy not possible in new lines added to a Grid". Rest assured that we are doing our best to resolve this as soon as possible. We will provide you with a detailed update by February 7th, 2023. In the meantime, we appreciate your patience and understanding. If you have any further concerns, please do not hesitate to reach out to us.
Regards,
Santhosh Iruthayaraj
Hi Thomas,
We have created a sample for you that demonstrates the solution to the issue you reported. Our sample features a Grid with both Batch edit mode and cell selection enabled, and we have added a row at the bottom of the Grid that can be copied as needed. We have also attached a video demo for your reference, which should provide a clearer understanding of the solution. Please take a moment to review your code to ensure that it matches the solution in the sample. If you continue to have difficulty, please provide us with the following,
Here's the link to the sample: https://stackblitz.com/edit/angular-vdsvkj?file=src%2Fapp.component.ts
We are committed to ensuring a positive experience for our customers, so please don't hesitate to reach out if you have any further questions or concerns.
Regards,
Santhosh Iruthayaraj
Hi,
Thank you for your answer.
Unfortunately, your example does not resolve our problem.
We want to be able to copy lines that have just been created.
As in the video example below (based on the project you sent https://stackblitz.com/edit/angular-vdsvkj?file=src%2Fapp.component.ts), I select the newly created line (the green line) and the line below it. As you can see, the pasted value does not contain the newly created line.
How can we fix this?
Hi Thomas,
We have reviewed the video sample that you provided. Unfortunately, it is not feasible to copy the added rows before updating. This is because the copy method works based on the dataSource, and selecting the added row before updating is not possible in Batch edit mode. So we can’t copy the copy the row which is not selected.
Documentation: https://ej2.syncfusion.com/angular/documentation/grid/clipboard
If you have any further questions or concerns, please let us know.
Regards,
Santhosh I