Hello,
I am using RadControl for WinForms Q3 2009 SP1 with VS2008, C#. I am trying to reproduce the bahavoir from your demos but something must be wrong. In your demos you got two special days that display some text inside special days boxes. After reviewing your code it become obvious that source code you display for running sample is not right. For example, even the text is not same, you have in running example text "Meeing with boss" while in the source code you can read: label2.Text = "Meeting with Microsoft";
However, even if copy/paste the entire sources it does not show text for special days, source code does not do anything except assigning two images from a list. Here is your code:
namespace Telerik.Examples.WinControls.Calendar.SpecialDays
{
public partial class Form1 : ExamplesForm
{
public Form1()
{
InitializeComponent();
RadLabel label1 = new RadLabel();
label1.Text = "Ann's Birthday";
RadLabel label2 = new RadLabel();
label2.Text = "Meeting with Microsoft";
this.radCalendar1.SpecialDays[0].Image = this.imageList1.Images[0];
this.radCalendar1.SpecialDays[1].Image = this.imageList1.Images[1];
this.radCalendar1.ShowFastNavigationButtons = false;
this.radCalendar1.FocusedDate = new DateTime(2007, 8, 9);
}
}
}
I see the label definition but nothing to link them to calendar. I think your demo is incomplete and somehow unusable. I tried to find a solution by myself and come up with this:
This does work but it's not the same behavoir like in your demo, text wrap and transparent label.
Could you please tell me what's the right solution to achieve my scope, assign text to a specialday, perhaps you can release correct source code of your working examples?
Regards,
Cornel I.
I am using RadControl for WinForms Q3 2009 SP1 with VS2008, C#. I am trying to reproduce the bahavoir from your demos but something must be wrong. In your demos you got two special days that display some text inside special days boxes. After reviewing your code it become obvious that source code you display for running sample is not right. For example, even the text is not same, you have in running example text "Meeing with boss" while in the source code you can read: label2.Text = "Meeting with Microsoft";
However, even if copy/paste the entire sources it does not show text for special days, source code does not do anything except assigning two images from a list. Here is your code:
namespace Telerik.Examples.WinControls.Calendar.SpecialDays
{
public partial class Form1 : ExamplesForm
{
public Form1()
{
InitializeComponent();
RadLabel label1 = new RadLabel();
label1.Text = "Ann's Birthday";
RadLabel label2 = new RadLabel();
label2.Text = "Meeting with Microsoft";
this.radCalendar1.SpecialDays[0].Image = this.imageList1.Images[0];
this.radCalendar1.SpecialDays[1].Image = this.imageList1.Images[1];
this.radCalendar1.ShowFastNavigationButtons = false;
this.radCalendar1.FocusedDate = new DateTime(2007, 8, 9);
}
}
}
I see the label definition but nothing to link them to calendar. I think your demo is incomplete and somehow unusable. I tried to find a solution by myself and come up with this:
RadLabel label1 = new RadLabel(); label1.Text = "Ann's Birthday"; |
RadHostItem host = new RadHostItem(label1); |
radCalendar1.SpecialDays[0].TemplateItem = host; |
This does work but it's not the same behavoir like in your demo, text wrap and transparent label.
Could you please tell me what's the right solution to achieve my scope, assign text to a specialday, perhaps you can release correct source code of your working examples?
Regards,
Cornel I.