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

Scrollbar position resets after pasting data in GridView

2 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 07 Nov 2014, 06:33 PM
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 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Nov 2014, 12:51 PM
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.

 
0
Brian
Top achievements
Rank 1
answered on 12 Nov 2014, 07:55 PM
Hi Desislava,

That solved the problem.  Thanks!

Brian
Tags
GridView
Asked by
Brian
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Brian
Top achievements
Rank 1
Share this question
or