Hi Dan,
The URL working fine and display the right pk value (t6UJ9A004I1U) if the clients click on the event. Thanks much for that. However, the second requirement unable to achieve.
protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
if (e.Value == "t6UJ9A004I1U")
{
e.LeftBarColor = "red";
e.BackgroundColor = "lightyellow";
e.InnerHTML = "<i>WARNING: This is an unusual event.</i><br>" + e.InnerHTML;
}
}
I tried the above code unfortunately not working. Is anywhere do I need to enable the property?
Can I change the property of EventClickJavaScript at DayPilotCalendar1_BeforeEventRender dynamically? Like below.
if (e.Value.Substring(1, 1) == "t")
{
DayPilotCalendar1.EventClickJavaScript = "document.location='wfTdts.aspx?id=' + e.value()";
}
else
{
DayPilotCalendar1.EventClickJavaScript = "document.location='wfOpdts.aspx?id=' + e.value()";
}
Thanks
Raj