Hi,
I am creating the DayPilot control dynamically and assigning all the property as well. But how to assign the event click JavaScrip Daynamically? dpc.EventClickJavaScript= "document.location='wfTicketDetail.aspx?id='" + e.value();
The " + e.value()" part is JavaScript and it must be inside the quotation marks.
Comment posted by Anonymous 19 years ago.
I need to change the script dynamically like below.
if (e.Value.Substring(1, 1) == "t")
{
<How to I get the object which I created dynamically>.EventClickJavaScript = "document.location='wfTdts.aspx?id=' + e.value()";
}
else
{
<How to I get the object which I created dynamically>.EventClickJavaScript =
"document.location='wfOpdts.aspx?id=' + e.value()";
}
Comment posted by Dan Letecky 19 years ago.
The client-side JavaScript object can be specified using ClientObjectName property. E.g.
dpc.ClientObjectName = "dpc1";
Comment posted by Dan Letecky 19 years ago.
However, changing the EventJavaScript in BeforeEventRender handler won't work (the one that you set last will be used).