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

GridView + DataPager + WCF Issue

3 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 27 Sep 2011, 07:10 PM
Hello.

I have a GridView with a DataPager, the grid itemsource is a list that comes from my WCF service. Untill now everything is working just fine, but now, the data base is getting bigger and the GridView is taking long time to show the results.


I think on a solution but I don't know how to implement, is there a way to make the RadDataPager get all the number of pages from my database, and JUST when the user click on a page number or click on next button of the DataPager i call the service and gets this records?

My question is the same of this post, but i check the answers and there's nothing that help me.
http://www.telerik.com/community/forums/silverlight/gridview/radgridview-and-raddatapager-with-a-lot-of-data.aspx

Thanks.

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Sep 2011, 09:44 AM
Hi Joao Paulo Grassi,

I believe that our new control can help you in this case. There is a sample project attached to my blog post that demonstrates how to use it.

Here you can find its online documentation.

Here you can see its online examples.

I hope this helps.

Kind regards,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Missing User
answered on 28 Sep 2011, 06:55 PM
Hi Ross,
Thank you for your help, but i still have questions
In my application we use the MVVM pattern, also we use Linq to SQL.

In all examples that i see, you use the services and the model in the Web Project, but how i use this control in a project that have multiple projects like:

DataAcess -> My .dbml file, querys, inserts updates etc
Services
Silverlight APP -> SL app call wcf service
WebProject

Can you provide some example using this estructure?

Thanks again!
0
Vlad
Telerik team
answered on 30 Sep 2011, 06:53 AM
Hello,

 If you want automatic paging, sorting, filtering, etc. you can use OData/WCF DataService with RadDataServiceDataSource or WCF RIA Services with RadDomainDataSource. Both services (WCF RIA 
and Data) however support official only EF - LINQ to SQL was moved in a toolkit.

With plain WCF services nothing will be automatic - you need to write custom code to handle paging, sorting, etc. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Missing User
Answers by
Rossen Hristov
Telerik team
Missing User
Vlad
Telerik team
Share this question
or