Draw grid or day cell borders in a calendar with multiview

2 posts, 1 answers
  1. Hassan
    Hassan avatar
    142 posts
    Member since:
    Aug 2010

    Posted 08 Apr 2011 Link to this post

    I require to have a grid drawn in the calendar. Or if every cell representing a day could haveits border ON will suffice as well. Kindly help. Regards.
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 08 Apr 2011 Link to this post

    Hi Hassan,

    Something like this should work for you

    public partial class Form1 : Form
        private Padding padding = new Padding(1);
        public Form1()
            this.radCalendar1.ElementRender += new Telerik.WinControls.UI.RenderElementEventHandler(this.radCalendar1_ElementRender);
            this.Shown += new EventHandler(Form1_Shown);
        void Form1_Shown(object sender, EventArgs e)
            this.radCalendar1.SelectedDate = DateTime.Today;
        private void radCalendar1_ElementRender(object sender, Telerik.WinControls.UI.RenderElementEventArgs e)
            e.Element.DrawBorder = true;
            e.Element.BorderColor = System.Drawing.Color.Gray;

    Hope that helps
Back to Top