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

[Solved] how to do sort and paging base on wcf service?

2 Answers 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jerome
Top achievements
Rank 1
jerome asked on 22 Dec 2010, 04:47 AM
for the RadDataView in Q3 2010 release 
we did not know how to paging base on server side.  and sort paging.
whether example code?


please provide informance.

thanks

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Dec 2010, 08:09 AM
Hi,

 The easiest way to achieve server side operations like sorting, paging, filtering, etc are WCF RIA Services. With plain WCF service you will need to code everything - similar to the approach I've used in this blog post

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
jerome
Top achievements
Rank 1
answered on 23 Dec 2010, 09:14 AM
I did not understand code below:
Client.GetCustomersAsync(_Data.PageIndex * _Data.PageSize, _Data.PageSize,
               _Data.SortDescriptors.ToDynamicLinq(),
               _Data.FilterDescriptors.ToDynamicLinq(),
               _Data.GroupDescriptors.ToDynamicLinq());


because we use stored procedure in sql server .
this stored procedure parameter is 'PageIndex , PageSize and out RecordCount' . sent these is ok.

but your code , i did not understand it ..

please tell me ,how to sent parameter pageIndex? to stored procedure? not pageIndex * pageSize.
Tags
GridView
Asked by
jerome
Top achievements
Rank 1
Answers by
Vlad
Telerik team
jerome
Top achievements
Rank 1
Share this question
or