Day column display only first letter in radCalendar

3 posts, 1 answers
  1. Salini
    Salini avatar
    6 posts
    Member since:
    Jun 2014

    Posted 05 Mar 2015 Link to this post

    Hi, 
    Is it possible to display only first letter for the DayColumn in radCalendar.
    By default it is displaying first 3 letters of the week name. I need to display only 1 letter. I found this below thread and it is possible in WinForms to change the format using dayNameFormat.
    http://www.telerik.com/forums/day-column-display-change-in-radcalendar

    How can I do the same for radCalender on Silverlight.

    Thank you.
    Salini.
  2. Answer
    Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 09 Mar 2015 Link to this post

    Hello Salini,

    In order to achieve the desired appearance of the names of the days you need to change the AbbreviatedDayNames of the current DateTimeFormat as shown below:
    this.radCalendar1.Culture = new System.Globalization.CultureInfo("en-US");
    this.radCalendar1.Culture.DateTimeFormat = new System.Globalization.DateTimeFormatInfo
    {
        AbbreviatedDayNames = new string[] { "S", "M", "T", "W", "T", "F", "S" }
    };

    Hopes this helps.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Salini
    Salini avatar
    6 posts
    Member since:
    Jun 2014

    Posted 10 Mar 2015 in reply to Nasko Link to this post

    Thank you Nasko.
Back to Top