Show current month when click on calendar button when selected date is different

2 posts, 0 answers
  1. Ajay
    Ajay avatar
    9 posts
    Member since:
    May 2018

    Posted 27 Mar Link to this post

    Hello Team,

     

    I am using 2013.2.724.1050 telerik version.

    I want to show current month when click on calendar button when selected date is different.

    e.g. SelectedDate = 21/01/2018 when I click on calendar I want to show current month(March 2019), so user do not have to go from January 2018 to March 2019 and can directly select any date from current month (March 2019).

    Also can you please let me know what events are bind with Previous and Next month button and how can I use it if on single click I want to move 2 months ahead.

     

    Thanks.

     

     

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2216 posts

    Posted 29 Mar Link to this post

    Hello Ajay,

    I am not sure that I understand your first requirement. Can you provide me with few drawings of the expected result?

    About the move next and previous buttons, there is no API that allows you to replace their behavior. In order to achieve your requirement you can extract the RadCalendar ControlTemplate and modify it a bit. Basically, you can replace the two default buttons with two your buttons, and bind them to custom commands that update the DisplayDate and the CurrentDate properties of the calendar.

    Regards,
    Martin Ivanov
    Progress Telerik
    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