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

setDataSource method in scheduler gives error

1 Answer 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Nithin
Top achievements
Rank 1
Nithin asked on 28 May 2018, 01:49 PM
Hi
I'm using Kendo scheduler for my application. I'm using a custom button for skipping a particular number of days, but after calling my service function and on calling the setDataSource()  I'm getting the error.

My code goes something like this 

service.getEvent(startDate,endDate).then(function(response){
     $scope.event=response;
 
   $scope.scheduler.setDataSource({
    data:$scope.event,
    schema:getSchema
  });
});

 

I'm able to get the response , the error occurs in $scope.scheduler.setDataSource() 

The current version I'm using is 
jquery- 3.1.1
angularjs - 1.7.0
kendo-ui- 2018.2.516

1 Answer, 1 is accepted

Sort by
0
Nithin
Top achievements
Rank 1
answered on 30 May 2018, 04:40 AM
Hi,
I was able to fix the issue. I think it was conflicting with the telerik report directive .js file which I accidentally loaded twice but still not sure how it was conflicting. Anyways thanks :)
Tags
Scheduler
Asked by
Nithin
Top achievements
Rank 1
Answers by
Nithin
Top achievements
Rank 1
Share this question
or