calendar week day format, Mon, Tues to M, T

4 posts, 1 answers
  1. felix
    felix avatar
    16 posts
    Member since:
    Nov 2010

    Posted 16 Dec 2010 Link to this post

    Hi there, is it possible to change the Mon Tue Wed Thu Fri Sat Sun headers to M T W T F S S ?

    To fit in with our design

    Many thanks

    Felix
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 20 Dec 2010 Link to this post

    Hi felix,

    This can be achieved by the AbbreviatedDayNames property of the current culture. Follow the code:
     
    radCalendar.Culture = new CultureInfo("en-US") { DateTimeFormat = new DateTimeFormatInfo { AbbreviatedDayNames = new string[] { "M", "T", "W", "T", "F", "S", "S" } } };

    All the best,
    Kaloyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. felix
    felix avatar
    16 posts
    Member since:
    Nov 2010

    Posted 21 Jan 2011 Link to this post

    Thanks for your reply, I take it there is no way to do it in XAML?

    Thanks!

    Felix
  5. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 22 Jan 2011 Link to this post

    RadCalendar uses the day names from the specified CultureInfo, which cannot be specified in XAML.

    All the best,
    Valeri Hristov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top