Good afternoon,
I am trying to filter a column that is an Int32 type, and I want to supply a list of numbers to filter it similar to:
Collection<Int32>.Contains(Int32)
Ideally, I would like it being applied to the server side of a Linq query (using the QueryableDataServiceCollectionView<T>) class.
I see by default, the Is Contained In filter is not enabled or available for non-String types, but is there a way I can override of create a custom behavior to add this IFilterDescriptor (or maybe the IColumnFilterDescriptor contract is what I need to be looking for) to the list that shows up in the CompositeFilterDescriptor to be selected during run time?
I found the following post on our company blog: http://www.telerik.com/blogs/filtering-collection-properties-with-radgridview-for-silverlight-and-wpf, which illustrates the example of:
this.players.Where(player => player.FormerClubs.Contains(”Liverpool”));
What I need is something like:
(new List<Int32>() { 13, 45, 20 }).Contains(this.tableDto.PrimaryKeyCol);
In the instance of the value input into the box being "13,45,20".
Any idea on how I can go about setting this up?
Thanks,
Ravin