This question is locked. New answers and comments are not allowed.
Hi,
We currently use a custom bound Telerik grid. When passing the filters to our controller it throws an SqlDateTime overflow exception when we apply a date filter. I had a look at the LINQ Expression that is generated for the datetime filter and here it is :
.Where(item => (IIF((item != null), item.CreatedAt, 01/01/0001 00:00:00) > 22/02/2012 00:00:00))
Is that supposed to happen?
The code is that simple :
Telerik version: 2010.3.1110.235
Thanks
Jean
We currently use a custom bound Telerik grid. When passing the filters to our controller it throws an SqlDateTime overflow exception when we apply a date filter. I had a look at the LINQ Expression that is generated for the datetime filter and here it is :
.Where(item => (IIF((item != null), item.CreatedAt, 01/01/0001 00:00:00) > 22/02/2012 00:00:00))
Is that supposed to happen?
The code is that simple :
IQueryable<Customer> customers = customerService.FindByCustomerQueryable(Customer.Id);filters = new List<IFilterDescriptor>();filters.Add(new FilterDescriptor{ Member = "CreatedAt", Value = new DateTime(2012,2,22), MemberType = typeof(DateTime) , Operator = FilterOperator.IsGreaterThan});customers = customers .Where(ExpressionBuilder.Expression<Customer>(filters)).ToList();Telerik version: 2010.3.1110.235
Thanks
Jean