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

ClipboardPasteMode Property Not Working

2 Answers 164 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Steve asked on 01 Feb 2011, 12:55 AM
See example solution that demonstrates this problem in support ticket ID is: 390084

I am using Telerik Silverlight controls, version 2010.3.1314.1040 with VS 2010.

If I set the ClipboardPasteMode property on my radgridview to anything other than 'Default', pasting is disabled.  I added two events to my radgridview to verify this:
  • CopingCellClipboardContent
  • PastingCellClipboardContent

I have set ClipboardPasteMode property to 'AllSelectedCells', 'OverwriteWithEmptyValues', 'None', 'SkipFirstLine', 'SkipHiddenColumns', 'SkipLastLine', and 'Default'.  The PastingCellClipboardContent event only gets hit if I set ClipboardPasteMode to 'Default'.

In debug, I can break in the CopyingCellClipboardContent event, and see the values that have been copied. 

The reason I hit this problem:  When empty cells are copied, they are ignored in the paste operation.  For example, if I copy five cells containing 60, 45, null, 45, 60, what gets pasted to the receiving cells is 60, 45, 45, 60.  This led me to try 'OverwriteWithEmptyValues' which resulted in paste not working at all.

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 04 Feb 2011, 02:46 PM
Hello Steve Dentel,

We are currently investigating the problem and we will notify you as soon as we have more information.


All the best,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Milan
Telerik team
answered on 03 Mar 2011, 03:59 PM

Hello Steve Dentel,

ClipboardPasteMode and ClipboardCopyMode properties are flag enums and in order to function properly you should always include the Cells value. For example, to instruct the grid to paste all copied cells and skip hidden columns you should setup ClipboardPasteMode property like this: ClipboardPasteMode="Cells,SkipHiddenColumns". If value Cells is missing no cells will be pasted.



Best wishes,
Milan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Steve
Top achievements
Rank 2
Answers by
Milan
Telerik team
Share this question
or