UPDATED:
Starting with version v2015 vol 2 (v15.2), this functionality is available out of the box. Simply set the GridViewDataColumn.SettingsHeaderFilter.Mode property to DateRangePicker to activate it. Please refer to the ASP.NET Grid View - Data Range Filter, Adaptivity and More (Coming soon in v15.2) blog post and the Date Range Header Filter demo for more information.
If you have version v15.2+ available, consider using the built-in functionality instead of the approach detailed below.
For Older Versions:
This example demonstrates how to create an ASPxComboBox filter with "today", "yesterday" and other filtering options
See Also:
CheckComboBox filtering in the Auto Filter Row
E1990: OBSOLETE - Date Range Filtering in the Filter Row
Question Comments
Added By: Amith Shetty 2 at: 3/24/2014 1:45:15 PM
In the example, if i have only one record which has yesterdays day and I pick a filter of "last week", when the grid is rendered, the filter on top says "yesterday" due to the following executing first in grid_ProcessColumnAutoFilter. Is there a workaround for this?
else if (value >= start.AddDays(-1.0) &&
value <= end.AddMilliseconds(-1.0))
e.Value = "Yesterday";
The sample provided via the Run Online option generates an error when selecting from the filter dropdown.
Added By: Gosha (DevExpress Support) at: 12/17/2014 11:01:12 AMHello,
Yes, I see this behavior and I created a separate ticket on your behalf, T188556: The E1950 sample provided via the Run Online option generates an error when selecting from the filter dropdown, regarding this issue.