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

MVVM + RadGridView + FilterDescriptors

3 Answers 215 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Naresh
Top achievements
Rank 1
Naresh asked on 24 Jan 2011, 04:16 PM
Hello,

First of all, a big THANK YOU to Telerik for developing the RadDomainDataSource. It's capabilities are greatly needed in our current project. You guys are the best in the business!

Now on to my problem. It appears that the automatic synchronization of the FilterDescriptors is not working. I have bound a RadGridView to a QueryableDomainServiceCollection on my view model. Everything is working great except for the fact the grid's built in filtering controls are not working. I select a condition, hit Filter and nothing happens. It does not matter what column I try it on. Everything I can find says that there's no extra code needed for the synchronization to occur. Am I missing something?

When I'm running this test there's one FilterDescriptor in the collection (set by an external drop down). That manually added FilterDescriptor is working perfect.

Thanks,
Brian

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 24 Jan 2011, 04:39 PM
Hi Brian,

Can you please open a separate support ticket and send us a runnable sample project that reproduces this behavior. We will debug it and see what is going wrong.

Thanks in advance.

All the best,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Naresh
Top achievements
Rank 1
answered on 24 Jan 2011, 08:14 PM
Hi Ross,

By building a sample app I found the issue. It was very simple. I had AutoLoad set to False so of course nothing was happening when I selected a filter. 

Thanks,
Brian
0
Rossen Hristov
Telerik team
answered on 25 Jan 2011, 09:52 AM
Hi Brian,

You are correct. When you have AutoLoad set to true, when anything that affects the query changes, AutoLoad will be requested and a Load will occur after a time period equal to the LoadDelay property. Using LoadDelay you can "gather" several changes and "send" them to the server at once instead of making a request every time something changes. Here is the online example about LoadDelay.

Greetings,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
DomainDataSource
Asked by
Naresh
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Naresh
Top achievements
Rank 1
Share this question
or