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

Day letters for minimal size

1 Answer 79 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
jas
Top achievements
Rank 1
jas asked on 13 Mar 2010, 07:31 PM
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.

Thanks

jas

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 17 Mar 2010, 04:20 PM
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. 

Regards,
Kaloyan
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.
Tags
Calendar
Asked by
jas
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or