I have a grid with large number of records and child rows attached. If I scroll down to even one page and chagne the value of a child row's cell, as soon as i leave the cell scroll bar goes back to the top which is causing hard time because you have to scroll down again and find the record to update other cells.
I have tested with another project as soon as we execute 'e.Row.ViewTemplate.Refresh(); ' it took the scroll bar back to top I have tried other functions too but problem persist. It is a bug in Q2 2011?
4 Answers, 1 is accepted
Thank you for your question.
Calling the Refresh method of ViewTemplate resets the values of the RadGridView's scrollbars. If your scenario requires this refresh, you can keep the value of the vertical RadGridView scrollbar as demonstrated in the following code snippet:
I hope it helps.
the Telerik team
Thank you for the reply. I tested your code but behavior is very strange. If I use your code or not, after changing the value hit Enter first time vertical scroll bar will go on top, after that it will never go on top works normal. But if I use TAB after changing value with your code or without always go on Top. To make it easy I am pasting the code here.
I just tested if I use below line of Code after setting integer value of VScrollBar works fine with Enter Key but with TAB key or lose focus of the cell with mouse then no chance.
Thank you for the provided code snippet and additional details.
RadGridView scrolls to its top records when the user changes a value in the child template's relation column. This change removes the child row from this template and the Refresh method of the child template leads to the undesired scrolling of the control.
This behavior of RadGridView will be addressed in the upcoming service pack, scheduled for the beginning of September.
the Telerik team