Ctrl C + Ctrl V Copy paste does not save data

Posted by: peter_murray on 4 February 2022, 4:17 am EST

  • Posted 4 February 2022, 4:17 am EST

    We're currently facing an issue where using keyboard shortcuts to copy and paste values between cells doesn't persist the data when we navigate between pages. It seems to us that our handlers for onCellEditEnded and onRowEditEnded never get called. We were wondering if this might be a defect with wijmo? Here's a stackblitz that can reproduce the problem.
    https://stackblitz.com/edit/angular-y4gvki?file=src%2Fapp%2Fapp.component.html
    Our current version of wijmo is 5.20211.794
  • Replied 6 February 2022, 11:11 pm EST

    Hello,

    Sorry but it seems you have mistakenly provided the wrong sample because we are able to perform copy/paste operation on the shared sample. Could you please confirm if the sample is correct or not? also if there are specific steps to replicate then do let us know.

    Regards
  • Replied 14 February 2022, 4:39 am EST

    Hello again,

    Sorry for the delay. To be more specific, we believe the problem lies with the "onPasted" event handler in this stackblitz. Similar to our code, this handler is not being called after something has been pasted. The pasting handler gets called just fine but pasted does not. Sorry for not making that clear in the initial post. Could you examine the pasted and pasting handlers?
  • Marked as Answer

    Replied 16 February 2022, 8:51 pm EST

    Hi Peter,

    Sorry for our delay in response. The reason that onPasted method is not called is that you are setting e.cancel to true in the pasting event due to which the event is canceled is not propagated to the pasted event. If you wish to raise the pasted event also, I would suggest you either do not cancel the event by setting e.cancel or raise the event manually by calling the onPasted method of FlexGrid.

    Regards,
    Ashwin
  • Replied 17 February 2022, 4:09 am EST

    Hello,

    Thanks for your suggestion! We made some changes based on that and we are now seeing the desired behavior.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels