I've made a YearRange custom filtering control that expose a DependencyProperty called Vintage
<telerik:GridViewDataColumn Width="110" DataMemberBinding="{Binding ModelVariant.Vintage}" Header="Ã…rgang">
<telerik:GridViewDataColumn.FilteringControl>
<local:CustomGridFilter Vintage="{Binding ElementName=root, Path=VintageYear, Mode=TwoWay}" />
</telerik:GridViewDataColumn.FilteringControl>
</telerik:GridViewDataColumn>
public int? Vintage
{
get { return (int?)GetValue(VintageProperty); }
set { SetValue(VintageProperty, value); }
}
public static readonly DependencyProperty VintageProperty =
DependencyProperty.Register(
"Vintage",
typeof(int?),
typeof(CustomGridFilter),
new PropertyMetadata(
null,
(sender, evt) => { ((CustomGridFilter)sender).OnPropertyChanged("Vintage"); }
)
);
Apparently the property never changes (INotifyPropertyChanged) even though it's databound to a property on the container.
So i suspect that the only other way to send a new filtering parameter to the Custom Filter Control is through other means ?
Or is this SUPPOSED to work ?
How would i programatically send the new filtering parameter to the control ?