Adding text to RadCalendar

4 posts, 0 answers
  1. Angus Cheung
    Angus Cheung avatar
    13 posts
    Member since:
    Aug 2009

    Posted 03 Nov 2009 Link to this post

    Hi,

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

    Thanks,
    Angus
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 05 Nov 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Alekhya
    Alekhya avatar
    1 posts
    Member since:
    Jan 2016

    Posted 07 Jan Link to this post

    hi,

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


    Thanks,

    Alekhya

  5. Dess
    Admin
    Dess avatar
    1608 posts

    Posted 07 Jan Link to this post

    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
Back to Top