title: Kendo UI Scheduler with AngularJS - Update issue in custom edit template
body: <p>We are using a custom editor template with custom fields in Agenda View. We have an edit button which fires the editEvent of scheduler. The problem is that, when we update the event, it doesn't fire the update operation.</p>
  
  <p>As you can see, in "add new event" case, it works fine. Also while editing the "repetitive events with series" case, it fires the update operation as desired.</p>
  
  <p>Only problem, we are having is that, while editing a single event (all day event or non-repetitive events), update operation is not fired.</p>
  
  <p>Does anyone have any solution to this?</p>
  
  <p><a href="http://dojo.telerik.com/igUWo/5" rel="nofollow">Here</a> is the link to demo in telerik's dojo :</p>
  
  <p>The HTML:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="example" ng-app="KendoDemos"&gt;
      &lt;div ng-controller="MyCtrl"&gt;
  
          &lt;div class="thisTab clickhereTabScheduledcont boxWrapper"&gt;
              &lt;div class="agenda" style="position:relative;"&gt;
                  &lt;div kendo-toolbar k-options="toolbarOptions" class="newEvent" id="toolbar" ng-click="schedulerOptions.addEvent()"&gt;&lt;/div&gt;
  
                  &lt;div kendo-scheduler="scheduler" k-options="schedulerOptions"&gt;
  
                   &lt;span k-event-template class='custom-event'&gt;
                      &lt;span&gt;{{dataItem.title}}&lt;/span&gt;
                      &lt;hr&gt;
                      &lt;i class="fa fa-pencil" ng-click="schedulerOptions.editEvent(dataItem)"&gt;Edit&lt;/i&gt;
                  &lt;/span&gt;
  
                  &lt;div k-all-day-event-template class='custom-all-day-event'&gt;{{dataItem.title}}&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;  
  &lt;/div&gt;
  </code></pre>
  
  <p>Script section:</p>
  
  <pre><code>&lt;script&gt;
  
        angular.module("KendoDemos", [ "kendo.directives" ])
        .controller("MyCtrl", function($scope){
  
            $scope.toolbarOptions = {
              items: [
              { type: "button", text: "New Event" }
              ]
          };
  
          $scope.schedulerOptions = {
           date: new Date("2013/6/13"),
           startTime: new Date("2013/6/13 07:00 AM"),
           height: 600,
  
           views: [
           "agenda"
           ],
           timezone: "Etc/UTC",
  
           editable: {
              template: kendo.template($("#customEditorTemplate").html())
          },
  
          dataSource: {
              batch: true,
              transport: {
                  read: {
                    url: "http://demos.telerik.com/kendo-ui/service/tasks",
                    dataType: "jsonp"
                },
                update: {
  
                   url: function (data) {
                      alert(JSON.stringify(data));
                      return "http://demos.telerik.com/kendo-ui/service/tasks/update";
                  },
  
                  dataType: "jsonp"
              },
              create: {
               url: function (data) {
                  alert(JSON.stringify(data));
                  return "http://demos.telerik.com/kendo-ui/service/tasks/create";
              },
          },
          destroy: {
              url: "http://demos.telerik.com/kendo-ui/service/tasks/destroy",
              dataType: "jsonp"
          },
          parameterMap: function(options, operation) {
  
            alert(operation);
  
        }
      },
      schema: {
          model: {
              id: "taskId",
              fields: {
                  taskId: { from: "TaskID", type: "number" },
                  title: { from: "Title", defaultValue: "No title", validation: { required: true } },
                  start: { type: "date", from: "Start" },
                  end: { type: "date", from: "End" },
                  startTimezone: { from: "StartTimezone" },
                  endTimezone: { from: "EndTimezone" },
                  description: { from: "Description" },
                  recurrenceId: { from: "RecurrenceID" },
                  recurrenceRule: { from: "RecurrenceRule" },
                  recurrenceException: { from: "RecurrenceException" },
                  ownerId: { from: "OwnerID", defaultValue: 1 },
                  isAllDay: { type: "boolean", from: "IsAllDay" }
              }
          }
      },
      filter: {
          logic: "or",
          filters: [
          { field: "ownerId", operator: "eq", value: 1 },
          { field: "ownerId", operator: "eq", value: 2 }
          ]
      }
      },
  
  
      editEvent: function (dataItem) {
  
          alert(JSON.stringify(dataItem));
          $scope.scheduler.editEvent(dataItem);
  
      },
  
      addEvent: function () {
          $scope.scheduler.addEvent({title: ""});
      }
  
      };
      })
  
  
  &lt;/script&gt;
  </code></pre>