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
575
Scroll grid to top
posted

I'm adding a batch of rows to a WebDataGrid in javascript using

for (i = 0; i < n; i++) myGrid.get_rows().add(myDataArray[i]);

adding works perfectly, but the grid also scrolls to bottom after this operation.

I'd like to scroll it to top, and I've seen the set_topScroll(0) method, but it doesn't work. Actually, I found out that even after adding rows, get_topScroll() always returns 0, so my set_topScroll() has no effect.

Any idea to solve this problem?

Parents
No Data
Reply
  • 37874
    posted

    Hi elvandar, 

    By default, adding row should not scroll the grid to bottom. Could you please attach a small isolated sample, demonstrating this behavior, in order to be able to provide more insight. Thank you.

Children