Scrollbar position resets after pasting data in GridView

3 posts, 0 answers
  1. Brian
    Brian avatar
    5 posts
    Member since:
    Sep 2007

    Posted 07 Nov 2014 Link to this post

    When I paste clipboard data into a RadGridView cell without entering cell edit mode, the grid view automatically resets the scrollbar position to the top.  If I paste data while in cell edit mode, the scroll position does not change.

    I need to be able to paste data without entering cell edit mode because I am typically pasting data into a range of cells, and not just a single cell.  How can I prevent the scroll position from changing when I paste data while not in cell-edit mode?

    Thanks,

    Brian
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3167 posts

    Posted 12 Nov 2014 Link to this post

    Hello Brian,

    Thank you for writing.

    The pasting functionality in RadGridView is controlled via the ClipboardPasteMode property. In order to keep the scrollbar state when pasting, you should set the ClipboardPasteMode property to EnableWithNotifications (pasting is enabled, and the respective cell events will be triggered upon paste operation).

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    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. Brian
    Brian avatar
    5 posts
    Member since:
    Sep 2007

    Posted 12 Nov 2014 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Hi Desislava,

    That solved the problem.  Thanks!

    Brian
Back to Top