Copy and paste with SelectionMode = Extended

8 posts, 0 answers
  1. Edward
    Edward avatar
    18 posts
    Member since:
    Oct 2010

    Posted 03 Dec 2010 Link to this post

    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
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 09 Dec 2010 Link to this post

    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
  3. Edward
    Edward avatar
    18 posts
    Member since:
    Oct 2010

    Posted 30 Nov 2011 Link to this post

    Hi,

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

    Thanks a lot

    Ed
  4. Vera
    Admin
    Vera avatar
    265 posts

    Posted 30 Nov 2011 Link to this post

    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 >>
  5. Vic
    Vic avatar
    36 posts
    Member since:
    Aug 2012

    Posted 25 Jul 2012 Link to this post

    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...

  6. Vera
    Admin
    Vera avatar
    265 posts

    Posted 26 Jul 2012 Link to this post

    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.

  7. Vic
    Vic avatar
    36 posts
    Member since:
    Aug 2012

    Posted 07 Aug 2012 Link to this post

    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
  8. Vera
    Admin
    Vera avatar
    265 posts

    Posted 09 Aug 2012 Link to this post

    Hello Vic,

      
    You can track the issue status here.

    Greetings,
    Vera
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top