This question is locked. New answers and comments are not allowed.
None of the GridFilterDescriptorFactory<TModel> Add methods play nice with DataRows, so I ended up having to use reflection to wedge in a solution:
DataTable support seems to be getting better throughout the MVC grid, it would be nice to have filtering support added as well. Thanks!
public static class GridFilterDescriptorFactoryExtensions{ public static GridFilterStringDescriptorBuilder Add<T>(this GridFilterDescriptorFactory<T> factory, string columnName) where T : class { var composite = new CompositeFilterDescriptor { LogicalOperator = FilterCompositionLogicalOperator.And }; var descriptor = new FilterDescriptor { Member = columnName }; composite.FilterDescriptors.Add(descriptor); var pi = typeof(GridFilterDescriptorFactory<T>).GetProperty("Filters", BindingFlags.Instance | BindingFlags.NonPublic); if (pi != null) { var filters = (IList<CompositeFilterDescriptor>)pi.GetValue(factory, null); filters.Add(composite); } return new GridFilterStringDescriptorBuilder(composite); }}DataTable support seems to be getting better throughout the MVC grid, it would be nice to have filtering support added as well. Thanks!