Empty cells are skipped after paste

3 posts, 0 answers
  1. Pavel
    Pavel avatar
    19 posts
    Member since:
    Nov 2011

    Posted 15 Apr 2014 Link to this post

    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. Boris
    Admin
    Boris avatar
    276 posts

    Posted 16 Apr 2014 Link to this post

    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.

     
  3. Attila
    Attila avatar
    2 posts
    Member since:
    Feb 2015

    Posted 30 Mar 2015 in reply to Boris Link to this post

    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!


Back to Top