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

Day of the week column header height

2 Answers 79 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Memo
Top achievements
Rank 1
Iron
Veteran
Memo asked on 01 Oct 2020, 07:01 PM

The day of the week (S M T W T F) is squished and I can't for the life of me figure out how to adjust it (see attached image).

Any help would be greatly appreciated.  Thanks!

2 Answers, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Oct 2020, 12:44 PM

Hello, Memo,

According to the provided screenshot, it seems that you change the font for the cell elements in the ElementRender event:  

        Font f = new Font("Verdana",18f, FontStyle.Italic );
        public RadForm1()
        {
            InitializeComponent();

            this.radCalendar1.Font = f;
            this.radCalendar1.ElementRender+=radCalendar1_ElementRender;
        }

        private void radCalendar1_ElementRender(object sender, RenderElementEventArgs e)
        {
            e.Element.Font = f;
        }

Thus, you don't have enough space inside the header to fit the weekdays text:

You can adjust the CalendarElement.HeaderHeight property to a value that would be enough for displaying the whole text: 

 this.radCalendar1.CalendarElement.HeaderHeight = 50;

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Memo
Top achievements
Rank 1
Iron
Veteran
answered on 02 Oct 2020, 08:17 PM
Brilliant!  Thank you so much for your attention to this matter.  Have a wonderful weekend.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Memo
Top achievements
Rank 1
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Memo
Top achievements
Rank 1
Iron
Veteran
Share this question
or