Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

OBSOLETE - ASPxGridView - How to customize RowFilter in DataDateColumn and provide two ASPxDateEdit controls that allow setting a date range as a filter expression

$
0
0

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:

To achieve this goal, use GridViewColumn.FilterTemplate. Place two ASPxDateEdit controls and the "Apply" button inside the template. In the ASPxClientButton.Click event handler, create a filter expression and apply it to the grid via the ASPxClientGridView.ApplyFilter method. See the example for more details. 

Question Comments

Added By: Dhiogo Roberto at: 9/16/2014 7:50:32 AM    

I tried to use this example, but it is not working.

Added By: Luke (DevExpress) at: 9/17/2014 1:38:26 AM    Hello Dhiogo,

We've successfully fixed the issue with this example's online launch, now it works correctly. Please check it out.


Best Regards,
LukeAdded By: Dhiogo Roberto at: 9/17/2014 5:00:00 AM    

I did not notice any change. Still does not work. Only the "Example Runner" works on site.

Added By: Luke (DevExpress) at: 9/18/2014 1:21:58 AM    Hello Dhiogo,

It's pretty strange, since on my side it runs online and works perfectly (see the attached video). Would you please clarify what browser you are using and what error you faced? It would be also greatly appreciated if you provide me with your own screencast illustrating the problem (you can use the Jing tool for this purpose).


Best Regards,
LukeAdded By: KenK at: 3/23/2016 3:24:36 PM    Again, as with your other "Obsolete" notices, this is NOT obsolete. Still can't easily have date ranger picker in the FILTER ROW. Not the Header Filter, but the auto filter row!

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>