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

Need to drop a html element to rad scheduler

2 Answers 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Iffat
Top achievements
Rank 1
Iffat asked on 03 Oct 2013, 08:43 AM
I have a rad scheduler and a html element outside of the scheduler. I need to drag the element to rad scheduler's cell. I used jquery UI for drag and drop. I made the radscheduler droppable. But could not find the timeslot in drop function. How can I get the timeslot information inside drop event. Please help.

p:s: Have seen dragging from radgrid to radscheduler demo. But I need to drag this html element and drop it tp rad scheduler.

2 Answers, 1 is accepted

Sort by
0
Ioish
Top achievements
Rank 1
answered on 22 May 2014, 05:21 PM
Same problem here! There's practically no documentation on describing how to do this. I have it working in Chrome, but not in IE and Firefox. I hope that Teleriks support can provide an example of how to do this, because current demo's do NOT explain how this is done.
0
Boyan Dimitrov
Telerik team
answered on 27 May 2014, 03:03 PM
Hello,

I would like to clarify that an easy and convenient way of achieving such functionality would be to use the RadScheduler client-side object get_activeModel().getTimeSlotFromDomElement(htmlElement). Please take a look on the code snippet below.
//JavaScript
//Gets the TimeSlot where your element is dropped.
var timeSlot = scheduler.get_activeModel().getTimeSlotFromDomElement(htmlElement);

In this case the htmlElement should be the td DOM element you dropped at. You can find that td element in the drop event arguments.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
Iffat
Top achievements
Rank 1
Answers by
Ioish
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or