Grid Filter Date Minimum

2 posts, 0 answers
  1. Marv
    Marv avatar
    3 posts
    Member since:
    Apr 2015

    Posted 26 Aug Link to this post

    We are using ASP.NET MVC and have a grid with a date column which as a filter. The date filter has datepickers. In the filter datepickers, is there a way to prevent the user from selecting some minimum date (like two years ago).
  2. Pavlina
    Pavlina avatar
    6069 posts

    Posted 30 Aug Link to this post


    You could use the filterMenuInit event to get reference to the DatePicker widgets of the filter menu and to set the desired min value:
    function filterMenuInit(e) {                        
      e.container.find("[data-role=datepicker]").kendoDatePicker("setOptions", {
        min: new Date(............)

    Note that the DatePicker will set the value only if the entered date is valid and within the defined range.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top