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

how to use different template for new events

1 Answer 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 06 Jan 2015, 05:37 AM
I want to be able to detect when a dbl click on the scheduler is an edit of an existing event, or a new event.
I then want to use a different template or at least be able to alter the template accordingly.
Is tis possible, thanks?
Thanks

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 08 Jan 2015, 07:14 AM
Hello Alan,

You can use the edit event to check if the edited event is new one and take the appropriate action:

$("#scheduler").kendoScheduler({    
  edit: function(e) {
    if (e.event.isNew()) {
      alert("event is new");
    }
  },
  /*..*/
});


Regards,
Rosen
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
Alan Mosley
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or