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

Radscheduler DateHeader Consistency

2 Answers 27 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 2
Jonathan asked on 23 Mar 2013, 04:14 PM
Hello everyone,

I have a question with regards to Radscheduler date display. By default, my scheduler will only show MonthView. For some reasons, the first day of the month always shows as MMM dd format. I want it to show a single digit day but the closest I'm able to do it is by changing the attribute FirstDayHeaderDateFormat to take a value of "dd", which effectively turns it into 01.

I tried supplying it a value of "d" but to no avail. When I used "d", I ended up with 01/03/2013 format. Is there anyway to keep the first day of the month to single digit?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 26 Mar 2013, 02:02 PM
Hello,

We are already aware of this issue and please use the following JavaScript workaround in order to keep your date headers consistent:
//JavaScript
function pageLoad() {
    var $ = $telerik.$;
  
    var firstDay = $(".rsContentTable td:not(.rsOtherMonth) .rsDateWrap a");
    if (firstDay[0] != null) {
  
        firstDay.first().text("1");
    }
}


Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jonathan
Top achievements
Rank 2
answered on 26 Mar 2013, 04:44 PM
Hello Boyan,

Got it. I forgot that I had also setup a thread for this before I raised the support ticket. Will close this now.

Cheers.
Tags
Scheduler
Asked by
Jonathan
Top achievements
Rank 2
Answers by
Boyan Dimitrov
Telerik team
Jonathan
Top achievements
Rank 2
Share this question
or