This is a migrated thread and some comments may be shown as answers.

Annoying page scroll on grid item select

4 Answers 67 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Santiago
Top achievements
Rank 1
Santiago asked on 11 Jan 2011, 05:39 PM
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?

Regards,
Santiago.

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Jan 2011, 11:07 AM
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,
Rumen
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.
0
Diego
Top achievements
Rank 1
answered on 27 Oct 2011, 01:20 PM
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,
Diego.
0
Dobromir
Telerik team
answered on 28 Oct 2011, 02:15 PM
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)
    {
        explorer.get_element().scrollIntoView(true);
    }
</script>


Greetings,
Dobromir
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
0
Diego
Top achievements
Rank 1
answered on 28 Oct 2011, 07:38 PM
It works like a charm.

Thanks,
Diego.
Tags
FileExplorer
Asked by
Santiago
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Diego
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or