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

Binding the FilteredSource

0 Answers 54 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Cosimo
Top achievements
Rank 1
Cosimo asked on 11 Apr 2012, 02:24 PM
Hi,

I've a MVVM Silverlight 4 module, that has a RadDataFilter on the view. I've binded the Source property of the filter on a ViewModel collection property. Now I would to bind the FIlteredSource property of the filter on another collection property in my ViewModel. My goal is to have the filtered collection in my ViewModel, and to elaborate it with linq.

The problem is that the FilteredSource is a get property, and Silverlight 4 does not support the OneWayToSource mode.

I've tried with this workaround:
<telerik:RadDataFilter x:Name="JobsFilter" Source="{Binding Jobs}" FilteredSource="{Binding FilteredJobs, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />

but it doesn't work.

Is there a workaround for this? Is another method to reach my goal?

Thanks,
Cosimo.

No answers yet. Maybe you can help?

Tags
DataFilter
Asked by
Cosimo
Top achievements
Rank 1
Share this question
or