Each time my grid loads, I want the last record to come into view. (The scroll bar at the bottom). This is a few lines of code that only works when the scroll bar is at the very top when posting back. If it is positioned anywhere else, that position will override my code. You can see the scroll bar go to the bottom (as desired) then quickly go back where it was before postback.... ????
function uwgBILD01S_InitializeLayoutHandler(gridName){
var grid = igtbl_getGridById(gridName); var lastRow = grid.Rows.length - 1; grid.Rows.getRow(lastRow).scrollToView(); }
var lastRow = grid.Rows.length - 1;
grid.Rows.getRow(lastRow).scrollToView(); }
I am seeing the same thing in IE8. I find that scrollToView doesn't work when called in code straight after a postback (I see similar things to you) but it does work on subsequent calls.