How to create an event without a popup in Kendo? Or create events programmatically?

We use the Kendo Scheduler user interface for telerik in our project, we try to create events programmatically without pop-ups.

To create a new event, we use the submit button. We can create a new event on the server by clicking on this button, however we cannot drag the event into the kendo scheduler without refreshing the page.

So far, we have tried two different approaches: 1. Using the addEvent method:

// comes up with the pop with given json data. We don't want to display the pop up.    
$("#scheduler").data("kendoScheduler").addEvent(eventJson);
  1. we tried to push / add the cloned data obtained from the response.
var data = $("#scheduler").data("kendoScheduler");
data._items.push(clonedJsonModifedWithOurNewData);
data.refresh(); // didn't do anything.

So, it would be very helpful if someone could just have some code and provide examples at http://dojo.telerik.com/epiJo/2 for programmatically programming events in a kendo scheduler.

Thank.

+4
1

Dojo, . 2 , , ,

1) .

$("#scheduler").data("kendoScheduler").dataSource.add(eventJson);

2) ,

$("#scheduler").data("kendoScheduler").dataSource.read();

,

+1

All Articles