Home Unanswered Active Tags New Question

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

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

Asked by Kiran Chandu 2 years ago.
Replies

Hi Dan,

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

Thanks,

Kiran Chandu

Comment posted by Kiran Chandu 2 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java