DatePicker Month Year in Month View Title

1 Answer 76 Views
Calendar DatePicker
RBarnes
Top achievements
Rank 1
RBarnes asked on 27 Sep 2024, 07:28 PM | edited on 27 Sep 2024, 07:34 PM

DatePicker with Multiple Rows and or Multiple columns the Month View Title isn't honored until you navigate to the next or previous set of months and back, then the Month Year is shown.  Or if you click to show the months and select a date, then click to show the dates again, then the Year is shown.

This only seems to be an issue if viewing a single month.  

<telerik:RadDatePicker ID="DatePicker1" runat="server" Calendar-MultiViewColumns="3" Calendar-MultiViewRows="2" ShowPopupOnFocus="true"> </telerik:RadDatePicker>

Also applies if using a shared Calendar.

Workaround in prerender

For Each View In Me.rcCalendar.CalendarView.ChildViews
         CType(View, MonthView).TitleFormat = "MMMM yyyy"
Next View

Version Used: 2024.2.513.462

RBarnes
Top achievements
Rank 1
commented on 07 Oct 2024, 06:22 PM | edited

Also, when the calendar is first shown, if you have special days in constitutive weeks, and empty date cell is shown as a special day and the edited date is not shown as selected on the calendar.  We style our company holidays as special days.

This only happens the first time the calendar is shown.  As with the original post, if you nav to a previous or past set of months and back, everything is as expected.   See image for examples.

 

1 Answer, 1 is accepted

Sort by
0
Vasko
Telerik team
answered on 02 Oct 2024, 07:21 AM

Hi Roger,

Thank you for bringing this workaround to the attention of the community.

This is generally related to the Calendar control, rather than the DatePicker, but in both cases the provided workaround is working, as seen in the Multi-Month View Calendar demo.

Regards,
Vasko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
Calendar DatePicker
Asked by
RBarnes
Top achievements
Rank 1
Answers by
Vasko
Telerik team
Share this question
or