Hi All,
I am working on a requirement to copy & paste data in Data Grid like, copying data from Excel and pasting in Data Grid both having same structure.
How we can use copy paste feature in Data Grid?
If this is possible to do, please provide me the steps, it will be very much useful.
Thank You.
HI @Saikumar Appana ,Its by default behaviour to copy and paste selected rows use ctrl+v to paste rows into datagrid, make sure your columns are editable else it wont to allow to pastePlease refer below links for more information:Copy and Paste Data into GridJavascript data grid clipboardhope it helpsJust a note :The 'paste' operation in the context menu is not possible and hence always disabled. It is not possible because of a browser security restriction that JavaScript cannot take data from the clipboard without the user explicitly doing a paste command from the browser (e.g. Ctrl+V or from the browser menu). If JavaScript could do this, then websites could steal data from the client via grabbing from the clipboard maliciously. The reason why the grid keeps the paste in the menu as disabled is to indicate to the user that paste is possible and it provides the shortcut as a hint to the user. This is also why the API cannot copy from clipboard. Regards,Swapnil
Thank You very much Swapnil, This helps me.
Thank You
Saikumar Appana.
Hi @Saikumar Appana
The Copy&Paste functionality is offered in OutSystems Data Grid in two ways:
Cheers,GM
Hi Martins.
Thank You for responding.
can you please help me how can i achieve this functionality.
I don't have any clue from where to start this.
Actually I am looking for this pasting rows in Data Grid fromExcel
I'm not getting the question.If the data types are the same you use the keyboard combinations Ctrl+C and Ctrl+V like in any other application.
Hi Martins,
Sorry, I should have mentioned this clearly, I want to perform Ctrl+C and Ctrl+V for copying Rows from Excel to Data Grid.
Like I select 5 rows in Excel and paste them in Data grid.
This will create 5 records in Data Grid, I am looking for this requirement.