Need to drop a html element to rad scheduler

3 posts, 0 answers
  1. Iffat
    Iffat avatar
    1 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    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. Ioish
    Ioish avatar
    9 posts
    Member since:
    Nov 2011

    Posted 22 May 2014 in reply to Iffat Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
  4. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 27 May 2014 Link to this post


    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.
    //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.

    Boyan Dimitrov

    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.

Back to Top