Binding the FilteredSource

1 posts, 0 answers
  1. Cosimo
    Cosimo avatar
    1 posts
    Member since:
    Apr 2012

    Posted 11 Apr 2012 Link to this post


    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?

Back to Top