Add day to special days

2 posts, 0 answers
  1. Freddy
    Freddy avatar
    25 posts
    Member since:
    Feb 2013

    Posted 14 May 2013 Link to this post

    Hi,

    How can I create a rad day object and add to the special days of Raddatepicker calendar from server code?

    Thanks,
    Freddy
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 May 2013 Link to this post

    Hi Freddy,

    Please have a look at the following C# code.

    C#:
    Telerik.Web.UI.RadCalendarDay radDay = new RadCalendarDay(); 
    radDay.IsToday = true
    radDay.ItemStyle.BackColor = System.Drawing.Color.Bisque; 
    radDay.Repeatable = Telerik.Web.UI.Calendar.RecurringEvents.Today;
    radDatePicker.Calendar.DayNameFormat = System.Web.UI.WebControls.DayNameFormat.Shortest;
    radDatePicker.Calendar.SpecialDays.Add(radDay);

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top