search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilotMonth Shows incorrect dates when i add "BeforeCellRender" event to it

Asked by Kiran Chandu
15 years ago.

Hi Dan,

I am trying to implement a functionality like when the user clicks on day number in a month calender, it will take the user to Day View.

Please look at belowCode:

<DayPilot:DayPilotMonth ID="dpMonthActionDesk" runat="server" ShowWeekend="false"
OnBeforeCellRender="dpMonthActionDesk_BeforeCellRender"
/>

protected void dpMonthActionDesk_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeCellRenderEventArgs e)
{
e.HeaderText = string.Format("<a OnClick='Test()'>{0}</a>", e.HeaderText);
}

Note: The calendar showing different datenumbersafter adding "BeforeCellRender" event to it.

Atpresent i am using DayPilot 5.7.1912 version.

Please advice me how to make it work.

I did not find any property like "Days" for DayPilotMonth Calendar as DayPilotCalendar has Days Property.

This is kiran chandu working with Kamlesh patel at Ebay.

Thanks,

Kiran Chandu

Comment posted by Kiran Chandu
15 years ago.

Hi Dan,

I resolved the issue by usinge.End.Day.ToString() instead of e.HeaderText.

Thanks,

Kiran Chandu

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.