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

[Solved] GridView+MVVM+Silverlight+DataPager+Server Side Filter Issue

5 Answers 282 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.
Jill
Top achievements
Rank 1
Jill asked on 16 Dec 2010, 04:10 PM
Hello All,

We have built a silverlight business application that originally used the grid and data pager. This application uses MVVM Light by GalaSoft. Everything works great, then I went in a swapped out the grid and data pager with Teleriks RadGridView and RadDataPager. Everything went smoothly until I wanted to do server side filtering.

I have been all through this forum, seen examples online, etc. but none seem to go all the way in helping. Most examples call for you to use the DomainDataSource to perform server side filtering but I can't get that to work right with MVVM Light. I even tried to start a new project using the DDS with RadGridView/RadDataPager, etc. and I got 4004 errors. That seemed to be a issue with PageSize on the RadDataPager and some suggested setting the PageSize property of the DDS instead but same error. And before anyone ask, yes I tried the OrderBy in the LINQ statement and still got the error lol!

Could someone here or at Telerik tell me is there a way to do server side paging/filtering/sorting with MVVM Light, RadGridView, RadDataPager without DDS or how to hook DDS to MVVM?

Thank you in advance!

5 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 16 Dec 2010, 04:28 PM
Hello Raymond,

You are asking this just in time and I have some great news for you.

We are releasing a new control called RadDomainDataSource with our Service Pack 1 next week. It will seamlessly integrate with RadGridView, RadDataPager and RadDataFilter. It will automatically perform filtering, sorting and paging on the server. Simply bind the grid and the pager to this control and that's it -- no code behind and no FilterDescriptor conversion hell.

For those of you that want to stick to a more pure MVVM model (and can't place a Control in the view model which is fair), we have also exposed the internal view that the control is using. It is called QueryableDomainServiceCollectionView<TEntity> and will automatically do everything on the server as well. In fact the control is using it, so you can use this same view from a view model. You will no need a control.

There will be an example called "MVVM Support" under the RadDomainDataSource example when we release the SP next week. This example will have server side filtering, paging and sorting in a pure MVVM manner. Hopefully you will be able to adapt this to your MVVM Light implementation.

I hope this helps.

Greetings,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Jill
Top achievements
Rank 1
answered on 16 Dec 2010, 04:44 PM
Ross,

This is the best news I've heard all week. Can't wait to receive the SP next week. Do you know what day it will be released?
0
Rossen Hristov
Telerik team
answered on 16 Dec 2010, 04:50 PM
Hi Raymond,

I really can't commit to a specific day -- it all depends on when all different teams' product will pass QA and will be ready to roll out.

We will be glad to receive feedback from you once you get to play with the new control. Customers' feedback is extremely important for us so we can improve our products.

We will be looking forward to hearing from you.

Kind regards,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Jill
Top achievements
Rank 1
answered on 30 Dec 2010, 05:35 PM
Hi Ross,

Any word on SP 1 release date?
0
Rossen Hristov
Telerik team
answered on 31 Dec 2010, 10:01 AM
Hello Raymond,

Unfortunately, it has been postponed for the middle of January due to unforeseen circumstances.

But, I have already announced the control here.

Two additional blogs:

Loading Data with RadDomainDataSource
CRUD with RadDomainDataSource

I will finish and publish an MVVM blog later today. For all the latest blogs, please check my blog page at:

http://blogs.telerik.com/rossenhristov/posts.aspx

Happy New Year!

Kind regards,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Jill
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Jill
Top achievements
Rank 1
Share this question
or