Drag/Drop external item onto scheduler?

9 posts, 0 answers
  1. Tyler
    Tyler avatar
    32 posts
    Member since:
    Jun 2011

    Posted 31 Jan 2014 Link to this post

    How can I implement drag/drop of external items onto the Scheduler control to create new events?
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 04 Feb 2014 Link to this post

    Hello Tyler,

    You can find a sample implementation of adding event to the Scheduler via drag&drop in this Code Library.

    Regards,
    Rosen
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Žiga
    Žiga avatar
    1 posts
    Member since:
    Dec 2014

    Posted 07 Jul 2015 in reply to Rosen Link to this post

    Greetings,

    I am using external events to plan via drag'n'drop. I looked your sample code. Is it possible to get exact planned time of event and not slot time?
    For example: user drop event at 5:10, how can I get 5:10 and not 5:00 (slot start time). The same, like if you would turn off snap option for scheduler.

    Best regards,
    Ziga
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 08 Jul 2015 Link to this post

    Hello Žiga,

    I'm afraid this is not supported out of the box.

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. eduardo
    eduardo avatar
    7 posts
    Member since:
    May 2011

    Posted 20 Aug 2015 in reply to Rosen Link to this post

    NIce code, but it is just one way...Grid to Schedule.... 
  7. Peter
    Peter avatar
    2 posts
    Member since:
    May 2016

    Posted 24 Jun Link to this post

    Hi Rosen,

    I've set up my Scheduler according to the example you've provided.

    However, both in my solution and in the provided example (after replacing the JS with more up-to-date http://cdn.kendostatic.com/2016.2.607/js/kendo.all.min.js), the scheduling in weekly view doesn't work when dropping items onto the All Day slot. Could you please help me find a solution for this? 

  8. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 24 Jun Link to this post

    Hello Peter,

    You should change the element on which the DropTargetArea is attached to be view's element instead of the content. Similar to the following:

    function  createDropArea(scheduler) {             
           scheduler.view().element.kendoDropTargetArea({
       //......

    Regards,
    Rosen
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  9. Peter
    Peter avatar
    2 posts
    Member since:
    May 2016

    Posted 24 Jun Link to this post

    Hi Rosen,

    thank you very much for the quick reply - it worked.

    One more related question though; how do I make this work for the agenda view, when dropping elements on the Date column? Neither of the options mentioned here works for this one.

  10. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 28 Jun Link to this post

    Hi Peter, 

    Currently there is no build-in way to get the current date from the agenda view slots and custom solution would be required. Currently however we have no such example which we can provide. 

    Regards,
    Vladimir Iliev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready