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

Display pop up editor on Movestart

5 Answers 67 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 16 Jul 2014, 02:35 PM
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

5 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 18 Jul 2014, 06:24 AM
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!
 
0
Anamika
Top achievements
Rank 1
answered on 22 Jul 2014, 01:25 PM
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
0
Vladimir Iliev
Telerik team
answered on 23 Jul 2014, 07:38 AM
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!
 
0
Anamika
Top achievements
Rank 1
answered on 23 Jul 2014, 08:54 AM
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?
0
Vladimir Iliev
Telerik team
answered on 23 Jul 2014, 10:11 AM
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!
 
Tags
Scheduler
Asked by
Anamika
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Anamika
Top achievements
Rank 1
Share this question
or