Annoying page scroll on grid item select

5 posts, 0 answers
  1. Santiago
    Santiago avatar
    14 posts
    Member since:
    Dec 2006

    Posted 11 Jan 2011 Link to this post

    Hi, I'm having an annoying problem. When I select an item in the grid, the page automatically scrolls so the selected item is centered on the screen.
    This behaviour is very annoying when I try to double-click an item 'cos the page scrolls on my first click and I end up doing my second click
    somewhere else on the page.

    Is there a way to disable this auto-scroll behavior?

  2. Rumen
    Rumen avatar
    13241 posts

    Posted 14 Jan 2011 Link to this post

    Hi Santiago,

    This Grid's behavior is by design and for the time being the scrolling cannot be disabled. We will consider, however, implementing a solution for one of the next releases of the control.

    I hope this behavior is not a showstopper for you.

    Best regards,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Diego
    Diego avatar
    7 posts
    Member since:
    May 2011

    Posted 27 Oct 2011 Link to this post

    Hi, is there a way to automatically select the first item in the file explorer grid at the initial load? i need to absorb this behavior and center the file explorer at the first load.

    Thanks in advance,
  4. Dobromir
    Dobromir avatar
    1633 posts

    Posted 28 Oct 2011 Link to this post

    Hi Diego,

    Instead of exploiting a browser issue, I would recommend you to use the correct JavaScript approach to center an item in the viewport. To do so you can handle the RadFileExplorer's OnClientLoad event and call scrollIntoView() JavaScript method, e.g.:
    <script type="text/javascript">
        function OnClientLoad(explorer, args)

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Diego
    Diego avatar
    7 posts
    Member since:
    May 2011

    Posted 28 Oct 2011 Link to this post

    It works like a charm.

Back to Top