Select Month and Year Only (No Day)

2 posts, 0 answers
  1. Hyong
    Hyong  avatar
    3 posts
    Member since:
    Feb 2015

    Posted 23 Aug 2019 Link to this post

    Hello, I was wondering if it was possible to to the use DateRangePicker for selecting a range of months instead of days. I currently have the following code:

    @(Html.Kendo().DateRangePicker()
                                      .Name("MonthlyDatePicker")
                                      .HtmlAttributes(new { style = "width: 100%" })
                                      .Events(e => e.Change("onMonthlyChange"))
                                      .Start("year")
                                      .Depth("year")
                                      .Format("MM yyyy")
                                    )

     

    This code appears the way I want it to but does not allow the user to select a month. Any help is much appreciated. Thanks

     

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2480 posts

    Posted 27 Aug 2019 Link to this post

    Hello Hyong,

     

    The behavior you describe is logged as an issue in our GitHub portal and the developers will address it as soon as possible. You can monitor its status below:

    https://github.com/telerik/kendo-ui-core/issues/5233

     

    Until the issue has been fixed I am afraid that selecting a date when the Start and Depth options are set to year would not be be possible. I apologize for any inconvenience this may cause you.

     

    Regards,
    Viktor Tachev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top