We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Copy not possible in new lines added to a grid


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?

4 Replies 1 reply marked as answer

SI Santhosh Iruthayaraj Syncfusion Team February 6, 2023 03:41 PM UTC

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.


Santhosh Iruthayaraj

SI Santhosh Iruthayaraj Syncfusion Team February 7, 2023 04:44 PM UTC

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,

  • Complete Grid code.
  • A code sample that reproduces the issue or try to reproduce the issue with our sample given below.
  • The version of the Grid you are using.

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.


Santhosh Iruthayaraj

Attachment: Grid_video_demo_9d64742b.zip

Marked as answer

WI Willemin replied to Santhosh Iruthayaraj May 2, 2023 07:29 AM UTC


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?

Attachment: democopy_5f9ca7a6.zip

SI Santhosh Iruthayaraj Syncfusion Team May 4, 2023 03:14 PM UTC

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.


Santhosh I

Live Chat Icon For mobile
Up arrow icon