Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
scrollToView() not working
posted

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(); }

Parents
No Data
Reply
  • 903
    posted

    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. 

Children
No Data