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

Multiview RadCalendar with ShowOtherMonthsDays=false but OnDayRender days still Rendered

1 Answer 46 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Nikolas G
Top achievements
Rank 1
Nikolas G asked on 25 Feb 2010, 07:39 AM
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!!!

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 26 Feb 2010, 02:26 PM
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.
Tags
Calendar
Asked by
Nikolas G
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or