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

CustomPaging like GridView implementation

4 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Midav Obuarez
Top achievements
Rank 1
Midav Obuarez asked on 29 Apr 2010, 10:39 PM
Hi,

I'd like to implement GridView, which would be similar to CustomPaging in ASP.Net, where all the paging and sorting is done on the server (if user's search returns 20,000 records you don't want to transfer all that to the client), in this scenario Paging GUI controls and the Grid on the client just raise events that tell the client to retrieve next page from the server or sort by certain field and actually sorting and next page retrieval will be done on the server. I am looking for an example on how to do that from the client point of view, i.e. which controls to use for next, prev page, etc..., how to raise event on the client when user clicks a grid column title without sorting the data bound data.
I am quite inexperienced in Silverlight and will appreciate any input.

Thank you,

Midav

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 30 Apr 2010, 07:14 AM
Hi Midav Obuarez,

One option would be to use WCF RIA Services + Telerik RadGridView and RadDataPager. Here are some online resources that will get you started.

My blogs:
Paging with RadGridView -- this one will show you how to page on the server.
Server-Side Filtering -- this one filters directly on the server through a custom UI

These online examples are also relevant:
Paging with RIA Services and a DomainDataSource -- this one sorts and filters on the server by translating our descriptors to DomainDataSource descriptors.
Pure Server-Side Filtering -- this is from the blog post.
Paging Configurator -- the many ways you can configure RadDataPager.

You might also want to check the rest of the online examples and the documentation.

Brad Abrams' series of blogs is the must-read if you decide to go with WCF RIA Services.

For filtering and sorting what you have to do is basically tell the DomainDataSource what to filter and sort on. You can command this from custom UI or from RadGridView as shown in the resources above.

You can of course develop your own pager from scratch or re-style RadDataPager to look differently. By doing the second you will have all the paging logic out-of-the-box and you will simply change the UI. Here is a blog that transforms RadDataPager into something you will never guess it's RadDataPager. Check it out.

Let us know if you have any questions or difficulties. We would be glad to assist.

Best wishes,
Ross
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Midav Obuarez
Top achievements
Rank 1
answered on 30 Apr 2010, 07:33 AM
Ross,

Thank you very much.
Lot's of very useful material.

Midav
0
Midav Obuarez
Top achievements
Rank 1
answered on 30 Apr 2010, 10:03 PM

Ross,
I looked through the materials and this is not exactly what I need.
I am not using WCF RIA Services and there is no single collection involved in this scenario.

My scenario is a user retrieves 500,000 records on the server and I don't want to create a collection and send it to the client and let RADDataPager page through that. I want to send only 40 (or other low number) records to the client and if it is possible use RADDataPager's interface to ask for more data from the server or move prev, next, etc... Also when sorting using GridView I'd like to raise an event to sort that will propagate to the server (and I'll handle this mysel) instead of sorting collection on the client.
My question was is it possible to configure Telerik controls to do that.

Thank you.

Midav

0
Vlad
Telerik team
answered on 03 May 2010, 07:04 AM
Hello,

When the grid is bound to DomainDataSource all operations will be applied server-side completely codeless.You can check my blog post for more info.

Regards,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Midav Obuarez
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Midav Obuarez
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or