Hi,
My gridview is bound to collection of business objects that are generated by Linq2SQL. Some columns are bound to plain properties (string, int, etc.) while other columns are bound to entire objects like so....
Everything is working fine so far, except for the column filtering options. I want to be able to filter the 'Items' column like if it was of type string. I want to be able to choose "StartsWith" or "Contains" from the FilterEditor. All I see are equality operations to choose from. Is this somehow possible without reverting the column datatype to 'string' or having to write a custom filter editor?
<telerik:RadGridView.Columns> |
... |
<telerik:GridViewDataColumn Header="ID" IsReadOnly="True" DataMemberBinding="{Binding Path=Id}" |
DataType="{x:Type System:Int32}" /> |
<telerik:GridViewComboBoxColumn Header="Items" |
DataType="{x:Type local:MyItem}" |
ItemsSource="{Binding ElementName=MyWindow, Path=ViewModel.AvailableItems}" |
DataMemberBinding="{Binding Path=SelectedItem}" |
DisplayMemberPath="ItemName" |
SelectedValueMemberPath=""/> |
... |
</telerik:RadGridView.Columns> |
Everything is working fine so far, except for the column filtering options. I want to be able to filter the 'Items' column like if it was of type string. I want to be able to choose "StartsWith" or "Contains" from the FilterEditor. All I see are equality operations to choose from. Is this somehow possible without reverting the column datatype to 'string' or having to write a custom filter editor?
Thanks,
-Stephan Ziep