Posted 19 February 2020, 2:25 pm EST
Hi Team,
When a copy & paste is done, how can we get the changed cell values as the paste event is not triggering any cellEditEnded or itemsEdited events.
Best regards,
Zam
Forums Home / Wijmo / General Discussion
Posted by: zam.abdulvahid on 19 February 2020, 2:25 pm EST
Posted 19 February 2020, 2:25 pm EST
Hi Team,
When a copy & paste is done, how can we get the changed cell values as the paste event is not triggering any cellEditEnded or itemsEdited events.
Best regards,
Zam
Posted 20 February 2020, 1:49 am EST
Hi Zam,
The cellEditEnded event is only called when a cell is edited using UI. That means, after pasting, this event will be triggered.
But, when we paste some values in the FlexGrid, the itemsEdited array is also updated accordingly. You can verify this by using the sample below:
https://www.grapecity.com/wijmo/demos/Core/CollectionView/EditingViews/TrackingChanges/purejs
Paste some data on the FlexGrid and observe that the Edited Items grid is also updated.
You can use this array to get the updated items.
Regards,
Ashwin
Posted 20 February 2020, 6:33 am EST
Hello Ashwin,
Thank you for your reply and reference links.
The itemsEdited edited array gives the entire row data right even though paste operation was done in one cell.
How can i get only the pasted item cells instead of the whole row.
Thanks,
Zam
Posted 24 February 2020, 3:25 am EST
Hi Zam,
If you wish to get each cell that has been pasted, you can use the pastedCell event of the FlexGrid. This event fires for each of the cells on which the current paste operation is performed:
https://www.grapecity.com/wijmo/api/classes/wijmo_grid.flexgrid.html#pastedcell
~regards
Posted 5 October 2020, 4:56 am EST
Hi,
We have facing with pasted event of flexgrid.
I am using pasted event of flexgrid and its works fine when we pasting on signle cell.
but when we pasting on multiple cells the pasted event triggered only for first pasted cell value.
Can we have solution for multiple cell pasting values so that event can execute for each cell value.
Deepak Dubey
Posted 5 October 2020, 11:49 pm EST
Hi Deepak,
You can use the pastedCell event for your requirements. The pasted event is fired when the pasting process is completed but the pastedCell is fired for each cell on which the new data is pasted.
https://www.grapecity.com/wijmo/api/classes/wijmo_grid.flexgrid.html#pastedcell
Regards,
Ashwin