Good afternoon Team Telerik
I have a next case (T 2011 Q1 Sp1, VST 2010, SQL 2008, MSF 4.0).
0. In global variables of Page I define:
1. I edit one cell of a register and finish the edition, the grid call "CellEditEnded"
1.1 Evaluate if have a new value is not equal to old value. If yes, I do:
2. In "DataLoaded" of grid I put the next line but it no change the state and after recall grid it stay in top data:
BUT I DON´T ANY CHANGE IN GRID AND STAY AT TOP A LEFT POSITION OF ITEMS. I want that grid stay in the scroll position to register that was edited
I made also in Data_Loaded: rgvGrid.ChildrenOfType(Of GridView.GridViewScrollViewer).Item(0).ScrollToEnd()
but nothing.
am I do any thing bad?
thanks for any help
Juan Pablo Díaz
Bogotá - Colombia.
pd. I see other similar Post but I don´t understand why my page don`t made nothing
I have a next case (T 2011 Q1 Sp1, VST 2010, SQL 2008, MSF 4.0).
0. In global variables of Page I define:
Dim var_scroll As GridView.GridViewScrollViewer
Dim pos_scroll(2) As Double ' pos_scroll(0) = horizontal; pos_scroll(1) = vertical; pos_scroll(2) = rowIndex Edited
1. I edit one cell of a register and finish the edition, the grid call "CellEditEnded"
1.1 Evaluate if have a new value is not equal to old value. If yes, I do:
If e.NewData <> e.OldData Then
var_scroll = rgvRegistroTabla.ChildrenOfType(Of GridView.GridViewScrollViewer).FirstOrDefault
pos_scroll(0) = var_scroll.HorizontalOffset
pos_scroll(1) = var_scroll.VerticalOffset
pos_scroll(2) = GetCellRowIndex(rgvRegistroTabla, e.Cell)
.... Code to save the changes ...
end if
2. In "DataLoaded" of grid I put the next line but it no change the state and after recall grid it stay in top data:
If Not IsNothing(var_scroll) Then
var_scroll.ScrollToVerticalOffset(pos_scroll(1))
var_scroll.ScrollToHorizontalOffset(100)
End If
I made also in Data_Loaded: rgvGrid.ChildrenOfType(Of GridView.GridViewScrollViewer).Item(0).ScrollToEnd()
but nothing.
am I do any thing bad?
thanks for any help
Juan Pablo Díaz
Bogotá - Colombia.
pd. I see other similar Post but I don´t understand why my page don`t made nothing