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

How to disable Scrollbar Change when GridView Update

2 Answers 242 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Baris
Top achievements
Rank 1
Baris asked on 29 Apr 2016, 02:16 PM

Hi,

I have a problem regarding to Gridview update. I am using ObservableCollection to bind the data and whenever ObservableCollection is updated the grid is updated as well. However the scrollbar goes to the top at each update. For example, I am dealing (reading the details about a selected row, updating the row, etc..) with a row and at the same time more data is added to Grid continuously. However, at each update UI is also updated and scrollbar goes to the top. This interrupts my work with the selected row. 

I also don't want to save the current row and focus UI to this row again after each update because that also interrupts my process with the selected row and freezes it. I basically do not want an update on the current rows of my Grid. When new data comes, it should be added to the end of my grid and this process should not interrupt my work with the previous rows. Thanks for any kind of help.

 

Kind Regards,

Baris Cakar

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 May 2016, 01:01 PM
Hello Baris,

The behavior you described is usually observed when the source collection is updated with a reset action or RadGridView rebound (calling Rebind method). Could you provide a bit more details on how you add the new items? What is the type of the source collection?

Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Baris
Top achievements
Rank 1
answered on 20 Apr 2017, 08:23 AM

Hi Maya,

 

Thanks for your help. I have solved the problem.

 

Regards,

Baris

Tags
GridView
Asked by
Baris
Top achievements
Rank 1
Answers by
Maya
Telerik team
Baris
Top achievements
Rank 1
Share this question
or