Display pop up editor on Movestart

6 posts, 0 answers
  1. Anamika
    Anamika avatar
    157 posts
    Member since:
    Mar 2014

    Posted 16 Jul 2014 Link to this post

    Hello,

    Currently when a Task is moved update Event fires and the new datetime is saved. incase of recurring Event we get messagebox to edit series or particular day. My requirement is to Show the add/edit popup window when a Task is moved. So in Scheduler_movestart may be if we can bring up the edit window and then user can Change other values as well and not just start/end date and time.

    Thanks

    Anamika
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 18 Jul 2014 Link to this post

    Hi Anamika,

    Basically I would suggest entirely disabling the "move" editing functionality of the scheduler in your case as the users can edit the event by double-clicking on them. Also you can open given event for editing from the "moveStart" event as demonstrated below:

    moveStart: function(e) {
            e.preventDefault();
            this.editEvent(e.event.uid);
    },

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Anamika
    Anamika avatar
    157 posts
    Member since:
    Mar 2014

    Posted 22 Jul 2014 in reply to Vladimir Iliev Link to this post

    Hello,

    In move_start Event can i get Information about the Event is recurreing or one time? i would like to popup edit window conditionally and not always.

    Thanks

    Anamika
  4. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 23 Jul 2014 Link to this post

    Hi Anamika,

    You can use the "isRecurring" method of the SchedulerEvents - please check the example below:

    moveStart: function (e) {
        if (e.event.isRecurring()) {
            e.preventDefault();
            this.editEvent(e.event.uid);
        }
    },

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Anamika
    Anamika avatar
    157 posts
    Member since:
    Mar 2014

    Posted 23 Jul 2014 in reply to Vladimir Iliev Link to this post

    ok that is Handy. But i also Need incase of non recurring Event i Need to check if ownerid is different than user who is changing then also Need to get edit Pop up window. So is it possible to Access properties of Task we have started to move?
  6. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 23 Jul 2014 Link to this post

    Hi Anamika,

    Actually the "e.event" parameter is the current event that is moved as described in the scheduler API:
    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top