This is a migrated thread and some comments may be shown as answers.

How to extend the custom Date Filter?

1 Answer 208 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Łukasz
Top achievements
Rank 1
Łukasz asked on 21 May 2017, 09:15 AM

Hi, I want to extend the default date column filter with something like "Last x days". User should can put the number of days (X). Is this possible to implement? Where can I find some information about extending filters or creating custom filters?

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 22 May 2017, 02:51 PM
Hello Ɓukasz,

To use custom logic on the filtering you can use the grid.dataSource.filter() method.  You can read more about filter() in the following article.


In the link bellow I configured a dojo sample that meets your requirements. There is an input where you specify the amount of  the last days and then by it's value a filtering is requested.


Regards,
Georgi
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Łukasz
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or