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

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

1 Answer 150 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 27 Mar 2019, 06:48 AM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 29 Mar 2019, 02:52 PM
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.
Tags
DatePicker
Asked by
Ajay
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or