I want to drag a appointment from radscheduler and want to drop onto another table where I am placing a 'div' tag.
Below is my radscheduler definition. I am taking a division tag and applying ondrag event to it but this event does not gets fired.
<script>
function fnSetInfo()
{
alert("Inside the function");
}
</script>
<
telerik:RadScheduler ID="radSchedulCalender" runat="server" DataEndField="Endtime"
DataKeyField="UNIQUEID" DataStartField="STARTTIME" DataSubjectField="subject"
DayStartTime="06:00:00" DisplayDeleteConfirmation="False" EnableEmbeddedScripts="true"
EnableViewState="False" MonthVisibleAppointmentsPerDay="4" OnClientAppointmentDeleting="OnClientAppointmentDeleting"
OnClientAppointmentEditing="OnClientAppointmentEditing" OnClientAppointmentInserting="OnClientAppointmentInserting"
OnClientAppointmentMoveEnd="OnClientAppointmentMoveEnd" Skin="Outlook" StartEditingInAdvancedForm="False"
WorkDayEndTime="18:00:00" WorkDayStartTime="06:00:00">
<AppointmentTemplate>
<div id="divDragSource" ondragstart="fnSetInfo()">
<asp:Label ID="lblAppTime" runat="server" Width="100%"></asp:Label>
<asp:Label ID="lblSub" runat="server" Width="100%"></asp:Label>
<asp:HyperLink ID="lblActivity" runat="server"></asp:HyperLink>
</div>
</AppointmentTemplate>
<MonthView VisibleAppointmentsPerDay="4" />
<TimelineView UserSelectable="false" />
</telerik:RadScheduler>
Also I tried by applying the ondragstart event from "radSchedulCalender_AppointmentCreated" server side event.
Dim divSrc As HtmlGenericControl = New HtmlGenericControl("DIV")
divSrc = e.Container.FindControl("divDragSource")
divSrc.Attributes.Add("ondragstart", "return fnSetInfo()")
Also I tried with applying 'onclick event to the division but it is also not getting fired.
I also tried with applying event to the label which is in the appointment from server side.
lblSub = CType(e.Container.FindControl("lblSub"), Label)
lblSub.Attributes.Add("ondragstart", "return fnSetInfo();")
This is also not getting fired.
Do radscheduler supports such behaviour i.e. deagging an appointment item to the outside of radscheduler?
Can anyone please help me in this?
Best Regards,
Hrushikesh.