How to extend the custom Date Filter?

2 posts, 0 answers
  1. Łukasz
    Łukasz avatar
    1 posts
    Member since:
    Apr 2017

    Posted 21 May 2017 Link to this post

    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?

  2. Georgi
    Admin
    Georgi avatar
    650 posts

    Posted 22 May 2017 Link to this post

    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.
Back to Top