Multiview RadCalendar with ShowOtherMonthsDays=false but OnDayRender days still Rendered

2 posts, 0 answers
  1. Nikolas G
    Nikolas G avatar
    11 posts
    Member since:
    Oct 2009

    Posted 25 Feb 2010 Link to this post

    Hi,
    I have a RadCalendar (Multiview  (col:4,row:3)) and I have set ShowOtherMonthDays="false".

    On OnDayRender event these days are still rendered.

    Is there any code which I can use onDayRender in order to avoid rendering otherMonthDays for MultiView RadCalendar?

    Thanx a lot!!!
  2. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 26 Feb 2010 Link to this post

    Hi Nikolas,

    You could try changing the default rendering of otherMonthsDays with the following code:

    void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
    {
      if (e.Day.Date <= e.View.MonthStartDate || e.Day.Date >= e.View.MonthEndDate)
      {
           e.Cell.Text = "";
      }
    }

    I hope this helps.

    Best wishes,
    Radoslav
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top