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

Special Days + previous month's days

1 Answer 38 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 06 Jun 2011, 03:05 PM
Ok, I'm not sure how to explain this, but, I have a list of "Special Days" that span 2 weeks on both sides of the displayed calendar.

For days that are "vacation" the image shown is the plane. However if the last days of the previous month is also a vacation day. The images do not show up. (See image attached).

Any work around for this?

Thanks!!

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 09 Jun 2011, 09:09 AM
Hello Phillip Foster,

Thank you for your question.

Template items are not displayed in previous month cells, so if you are setting the plane image via the TemplateItem property, this might be the reason why you do not see the images. To get images in previous month cells, I suggest using the Image property of the special days:
this.radCalendar1.SpecialDays[i].Image = Image.FromFile(@"C:\image.png");

I hope this helps. Feel free to ask if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or