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

Adding text to RadCalendar

3 Answers 214 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Angus Cheung
Top achievements
Rank 1
Angus Cheung asked on 03 Nov 2009, 12:06 PM
Hi,

How can i add text or control in a specific date or day cell?

Thanks,
Angus

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 05 Nov 2009, 08:24 AM
Hi Angus Cheung,

You can take a look at the "Special days" calendar example in our QSF. It demonstrates how to add a control, image or text to a specific calendar day. 

Please write me back if you need more information.

Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alekhya
Top achievements
Rank 1
answered on 07 Jan 2016, 07:21 AM

hi,

 How can i add text or control in a specific date or day cell?


Thanks,

Alekhya

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Jan 2016, 12:11 PM
Hello Alekhya,

Thank you for writing.

To customize the day elements appearance of RadCalendar, use the ElementRender event as shown in the code snippet below:
private void radCalendar1_ElementRender(object sender, Telerik.WinControls.UI.RenderElementEventArgs e)
{
    if (e.Day.Date.Date.Day == 7)
    {
        e.Element.Text = "Custom text";
    }
}

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Angus Cheung
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Alekhya
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or