I have a RadGrid inside a div set to overflow auto. If you scroll down and select a row the div’s scroll position gets reset to the top. Tried using built-in scroll functionality but this didn’t work (layout breaks and only background of template cells scroll without scrolling other elements). Tried JavaScript to reset scrollTop property of div on active row changed but this also didn’t work.
Share
Found my own solution to this one. I created two hidden fields – one that maintains the scroll position (ScrollPosition), and another that maintains the ID of the scrolling container div (ScrollingContainerID). My RadGrid is embedded in a User Control, so I have a server-side method to set the div the grid is contained in:
On the RadGrid, I set two client events:
Then I defined the following client-side functions: