Day letters for minimal size

2 posts, 0 answers
  1. jas
    jas avatar
    20 posts
    Member since:
    Jul 2006

    Posted 13 Mar 2010 Link to this post

    I would like to display the calendar in as small an area as possible and so would prefer to show only the first letter of each day (M,T,W... in English). How could I do this?

    Also, I would find it useful to have a calendar that is a single column (or row) or number - a 'one line' calendar. The one square view that the present calendar has can be awkward in some form designs.  A datepicker is not appropriate here as it is required to see all dates in a month.


  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 17 Mar 2010 Link to this post

    Hello jas,

    To show only the first letter of the day-names you need to set  AbbreviatedDayNames of the current DateTimeFormat:

    calendar.Culture = new System.Globalization.CultureInfo("en-US")
                  DateTimeFormat = new System.Globalization.DateTimeFormatInfo()
                      AbbreviatedDayNames = "M,T,W,T,F,S,S".Split(',').ToArray()
    Also you can get a smaller control by defining a smaller width and height. Unfortunately there is no way to display the date in one row or column. 

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top