Hello there,
I found this thread: http://es.infragistics.com/community/forums/t/60872.aspx
My goal is to scroll to the bottom of the grid and the page, when the user clicks on a button to add an empty row at the end.
I tried something like this:
const int ROW_HEIGHT = 25; const int ROWS_PER_TAB = 200; dgrRoles.ScrollTop = Math.Min(dgrRoles.Rows.Count, ROWS_PER_TAB) * ROW_HEIGHT;
Since maximum rows are 200, I dont need to check more. But kinda nothing happens. Should this work for scrolling the whole page too?
Thanks for your response
Matthias
Hello Mathias,
Please do not hesitate to contact me if you have any further questions regarding this matter.
Hello Matthias,
Thank you for posting in the community.
Setting the scrolltop property of WebDataGrid would not scroll your entire page, however setting the scoll position of the page itself is possible using javascript. I am attaching a sample demonstrating how the page is scrolled to its end (in this case this is done at the grid's clientside Initialize stage).
Please let me know if this helps.