Radscheduler DateHeader Consistency

3 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    14 posts
    Member since:
    Jan 2012

    Posted 23 Mar 2013 Link to this post

    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. Answer
    Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 26 Mar 2013 Link to this post

    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.
  3. Jonathan
    Jonathan avatar
    14 posts
    Member since:
    Jan 2012

    Posted 26 Mar 2013 Link to this post

    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.
Back to Top