This is a migrated thread and some comments may be shown as answers.

Drag from Rad Scheduler and drop onto another div control

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 25 Mar 2009, 11:08 AM
Hi All,
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.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Mar 2009, 12:26 PM
Hello Hrushikesh Mokashi,

Dragging of appointments out of RadScheduler is not supported.

Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or