Copy-Paste combobx data

Posted by: eveverad3 on 29 March 2019, 7:21 am EST

  • Posted 29 March 2019, 7:21 am EST

    Hello,

    Working with FlexGrid on Angular 7.

    Is it possible to copy paste values from a combobox cell to another?

    In the example below, I would like to be able to copy paste values on the Country column.

    https://stackblitz.com/edit/angular-fjxcdb

    Regards,

  • Posted 1 April 2019, 7:44 am EST

    You can achieve this by handling the copying and pasting events of Flexgrid. In the copying event, you can copy the value of the cell and store it in a variable.

    In pasting event, you can use your prepareCellForEdit event handler and add these values as checked items for Multiselect control. Please refer to the updated sample below:

    https://stackblitz.com/edit/angular-korgte?file=app/app.component.ts

    I have updated the sample, added copying and pasting event handlers and on line 60, instead of treating the cell data as a single value, I treated it as multiple values from the combo box.

    Please let me know if it works for you.

Need extra support?

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

Learn More

Forum Channels