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

Copy and paste with SelectionMode = Extended

7 Answers 116 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 03 Dec 2010, 04:17 PM
Hello,

There seems to be unexpected behaviour with copy and paste with SelectionMode = Extended.

I have the grid specified below. If I add some rows, then select row 1 and press Ctrl+C, then select row 5 and press Ctrl+V, then row 1 is correctly pasted into row 5. So single-row copying works fine.

However, if I add some rows, then select both rows 1 and 2 and press Ctrl+C, then select row 5 and press Ctrl+V, then rows 1 and 2 are pasted into rows 2 and 3 instead of rows 5 and 6. This happens regardless of which row I select (underneath row 2) before pressing Ctrl+V.

More strangeness:
- If I select rows 2 and 3, press Ctrl+C, then select row 4 and press Ctrl+V, then the two rows are pasted into rows 3 and 4 instead of rows 4 and 5. If I now select just row 6 and press Ctrl+C, and paste into Notepad, rows 2 and 6 are pasted in (not just row 6).
- If I select rows 2,3,4, press Ctrl+C, then select row 7 and press Ctrl+V, then the three rows are pasted into rows 4,5,6 instead of row 7,8,9.
- If I select rows 2 and 5, press Ctrl+C, then select row 8 and press Ctrl+V, then the two rows are pasted into rows 5 and 6 instead of 8 and 9.

I've checked that this is not just a visual bug - the underlying data is affected in the same way.

Many thanks

Ed
Hello,

I'm experiencing quite a lot of unexpected behaviour when copying and pasting with SelectionMode = Extended.

I have the grid specified below. If I add some rows, then select row 1 and press Ctrl+C, then select row 5 and press Ctrl+V, then row 1 is correctly pasted into row 5. So single-row copying works fine.

However, if I add some rows, then select both rows 1 and 2 and press Ctrl+C, then select row 5 and press Ctrl+V, then rows 1 and 2 are pasted into rows 2 and 3 instead of rows 5 and 6. This happens regardless of which row I select (underneath row 2) before pressing Ctrl+V.

More strangeness:
- If I select rows 2 and 3, press Ctrl+C, then select row 4 and press Ctrl+V, then the two rows are pasted into rows 3 and 4 instead of rows 4 and 5. If I now select just row 6 and press Ctrl+C, and paste into Notepad, rows 2 and 6 are pasted in (not just row 6).

- If I select rows 2 and 3, press Ctrl+C, then select row 4 and press Ctrl+V, then the two rows are pasted into rows 3 and 4 instead of rows 4 and 5. Furthermore, if I now select just row 6 and press Ctrl+C, and paste into Notepad, rows 2 and 6 are pasted in (whereas it should have copied just row 6).

- If I select rows 2,3,4, press Ctrl+C, then select row 7 and press Ctrl+V, then the three rows are pasted into rows 4,5,6 instead of row 7,8,9.

- If I select rows 2 and 5, press Ctrl+C, then select row 8 and press Ctrl+V, then the two rows are pasted into rows 5 and 6 instead of 8 and 9.

I've checked that this is not just a visual bug - the underlying data is affected in the same way.

Many thanks

Ed

P.S. Here's my grid:

<telerik:RadGridView HorizontalAlignment="Left" Name="gridView" VerticalAlignment="Top" Width="490" HeaderRowStyle="{StaticResource gridViewHeaderRowFixedHeightStyle}" CanUserReorderColumns="False" CanUserFreezeColumns="False" CanUserResizeColumns="True" CanUserSelect="True" CanUserSortColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False" AutoGenerateColumns="False" CanUserDeleteRows="True" CanUserInsertRows="True" SelectionMode="Extended" ShowInsertRow="True" RowIndicatorVisibility="Visible" RowHeight="20">
 
    <telerik:RadGridView.Columns>
...
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

Hello,

There seems to be unexpected behaviour with copy and paste with SelectionMode = Extended.

I have the grid specified below. If I add some rows, then select row 1 and press Ctrl+C, then select row 5 and press Ctrl+V, then row 1 is correctly pasted into row 5. So single-row copying works fine.

However, if I add some rows, then select both rows 1 and 2 and press Ctrl+C, then select row 5 and press Ctrl+V, then rows 1 and 2 are pasted into rows 2 and 3 instead of rows 5 and 6. This happens regardless of which row I select (underneath row 2) before pressing Ctrl+V.

More strangeness:
- If I select rows 2 and 3, press Ctrl+C, then select row 4 and press Ctrl+V, then the two rows are pasted into rows 3 and 4 instead of rows 4 and 5. If I now select just row 6 and press Ctrl+C, and paste into Notepad, rows 2 and 6 are pasted in (not just row 6).
- If I select rows 2,3,4, press Ctrl+C, then select row 7 and press Ctrl+V, then the three rows are pasted into rows 4,5,6 instead of row 7,8,9.
- If I select rows 2 and 5, press Ctrl+C, then select row 8 and press Ctrl+V, then the two rows are pasted into rows 5 and 6 instead of 8 and 9.

I've checked that this is not just a visual bug - the underlying data is affected in the same way.

Many thank

7 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 09 Dec 2010, 08:55 AM
Hi Edward,

Please, excuse us for the late reply.
We are investigating the problem and we will contact you as soon as we have more information.
 
Regards,
Yordanka
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Edward
Top achievements
Rank 1
answered on 30 Nov 2011, 11:46 AM
Hi,

Just wondering what the latest is on this issue..?

Thanks a lot

Ed
0
Vera
Telerik team
answered on 30 Nov 2011, 12:50 PM
Hi Edward,

I tested the issues you reported with our Q3 2011 version and they are no longer reproducible. You may download it and test it on your side.
Let me know if further assistance is needed.

Regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Vic
Top achievements
Rank 1
Iron
answered on 25 Jul 2012, 07:39 PM
Hello,
It looks like there are some lingering issues in the current release with paste when SelectionMode = Extended.

Here's what I'm experiencing in a grid with 10 rows:
  1. Copy 2 rows from an Excel spreadsheet; select row 3 in grid and paste => rows 3 and 4 are replaced with new content; no problem.
  2. Copy another 2 rows from spreadsheet; select row 7 in grid and paste => rows 4 and 5 are replaced with new content, not rows 7 and  8 as expected.
  3. Copy another 2 rows from spreadsheet; select any row in grid and paste => nothing happens.

If I reset SelectionMode to the default setting, multiple pastes work without a glitch.

Appreciate your assistance...

0
Vera
Telerik team
answered on 26 Jul 2012, 10:35 AM
Hi Vivian,

Thank you for the provided details. We reproduced the problem and we will further investigate it.

Excuse us for any inconvenience caused. Your Telerik points have been updated accordingly.

Regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Vic
Top achievements
Rank 1
Iron
answered on 07 Aug 2012, 03:25 PM
Hello Vera,
I would like to keep tabs on this issue so I can know when a fix is available.  Is there a PITS item for this I can track?

Thanks
0
Vera
Telerik team
answered on 09 Aug 2012, 07:51 AM
Hello Vic,

  
You can track the issue status here.

Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Edward
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Edward
Top achievements
Rank 1
Vera
Telerik team
Vic
Top achievements
Rank 1
Iron
Share this question
or