DateTime Range Search

May 5, 2014 at 10:32 PM
It would be great if the filter of DateTime could be set in a range of Dates.

Is this feature planned?


Great plugin by the way!

D.
Coordinator
May 10, 2014 at 7:16 AM
May 17, 2014 at 12:26 AM
Very nice with the date filtering. That said, its not exactly a date range filter, right? I mean select rows only between 'dateFrom' to 'dateTo'

Is there something I can do to make that happen when I want to filter my date column? Are there any example of how I can make that happen?
Coordinator
May 31, 2014 at 2:00 PM
Grid.Mvc supports multiple filter expressions per one column. To query date range you can pass 2 filter expressions, like
  1. date column less or equals DateTo
  2. date column greater or equal DateFrom
For example this query http://gridmvc.azurewebsites.net/?grid-filter=OrderCustomDate__7__1998-05-01&grid-filter=OrderCustomDate__6__1998-05-05 - greater than or equals 1998-05-01 and less than 1998-05-05