This is a migrated thread and some comments may be shown as answers.

Empty cells are skipped after paste

2 Answers 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pavel
Top achievements
Rank 1
Pavel asked on 15 Apr 2014, 01:42 PM
I'm using the version 2013.3.1202.40

If a user copies a line (CRTL-C) and pastes it (CTRL-V), there is a problem when one of the column's contents is empty. All contents are shifted “to the left”, simply ignoring the empty column.

So, if we have something like "Text;;;End" it would be pasted as "Text;End"

2 Answers, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 16 Apr 2014, 02:04 PM
Hello Pavel,

In order to stop the shift "to the left" you can set the ClipboardPasteMode property of RadGridView to OverwriteWithEmptyValues.

<telerik:RadGridView Name="xGridView"
                      ClipboardPasteMode="OverwriteWithEmptyValues"
                              ... />

You can find more information about Copying and Pasting in our documentation articles.

I hope this helps.

Regards,
Boris Penev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Attila
Top achievements
Rank 1
answered on 30 Mar 2015, 09:19 AM
I think you should add the "Cells" value also to the ClipboardPasteMode attribute, otherwise the paste will not work at all. (This was my experience):

So this worked for me:

<telerik:RadGridView Name="xGridView"

                      ClipboardPasteMode="Cells, OverwriteWithEmptyValues"

                              ... />

Anyway, thank you for the help Boris!


Tags
GridView
Asked by
Pavel
Top achievements
Rank 1
Answers by
Boris
Telerik team
Attila
Top achievements
Rank 1
Share this question
or