Day Pilot Scheduler - How can I pass the DataValueField to a javascript function on EventClickJavascript event ?
14 years ago.
Hi I currently am using the open source version of the DayPilotScheduler control which I really like, but I am unclear on how I can pass the DataValueField which in my case is called "EventID" through to javascript function. I tried the following :
<DayPilot:DayPilotScheduler ID="DayPilotScheduler2" runat="server" DataStartField="StartDate"
DataTextField="Subject" DataValueField="EventID" DataEndField="EndDate" DataResourceField="StaffID"
BackgroundColour="backgroundColour" Width="100%" Days="1" BusinessBeginsHour="9"
BusinessEndsHour="18" CellDuration="60" CellWidth="69" RowHeaderWidth="157" TimeFormat="Clock12Hours"
Enabled="True" FreeTimeClickHandling="JavaScript" EventClickHandling="JavaScript"
ViewStateMode="Enabled" ShowToolTip="True" EventClickJavaScript="loadEdit('{0}');"
FreeTimeClickJavaScript="loadEdit('{0}');" ondatabinding="DayPilotScheduler2_DataBinding"
/>
but {0} seems to only be the subject. and {1} would be empty.
many thanks .
DayPilot