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

Load Data during scroll

2 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 03 Jul 2009, 02:47 PM
Hi

I'm currently having troubles with the RadGridView performances. I tried almost everything I could think of.

What I'm trying to do is load variable amount of data (from 5 rows to several thousands depending on my request) onto a RadGridView.
The structure of the loaded data is also completely different each time (different number of columns or type of data)

I'm loading my data from a PostgreSQL database using WCF service, but the grid takes between 2 and 6 seconds to display the data, which isn't acceptable for my purpose.

So I had an idea on how I could fix my problem.

I thought that I could try to load only the first 20 or 30 rows at a time, and when I scroll down (I'm on deferred mode), I would call my webservice to load the data corresponding to my scrollbar position.

But unfortunatly, after several attermpts, I couldn't find a way to achieve this.
So I'm asking if you'd have any way to perform such coding. (btw, since everything in my application is dynamic, every treatments are code-behind based.

Regards
Ludovic

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Jul 2009, 05:34 AM
Hi Ludovic,

You can find such demo here:
http://demos.telerik.com/silverlight/#GridView/Performance/ServerSide

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 06 Jul 2009, 08:00 AM
Hi

This isn't exactly what I need, but I might be able to use it as a start point.

Thanks for that.

If anyone passing by has any idea, I'd be thankful for sharing it.

Regards
Ludovic
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ludovic Gerbault
Top achievements
Rank 1
Share this question
or