I am looking to filter the datasource for Grid with a CompositeFilterDescriptor instead of just a FilterDescriptor so I can set the or condition. I can't quite figure out a way to do this using the example on your site as well as playing around with the different constructors for the add method. The add methods only take a FilterDescriptor. Below is an example from your site, is this possible using the Filter() Method on the grid to asdd
@(Html.Kendo().Grid<Product>()
.Name(
"grid"
)
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action(
"Products_Read"
,
"Home"
))
.Filter(filters =>
{
// Show products whose ProductName property contains "C"
filters.Add(product => product.ProductName).Contains(
"C"
);
// and UnitsInStock is greater than 10
filters.Add(product => product.UnitsInStock).IsGreaterThan(10);
})
)
)