I have a dropdown to select a new calendar to view. That also triggers new resources. I need to remove all the current data and resources, and then reload it.
What is the best way? I am currently using the ObservableArrays like:
event = new kendo.data.ObservableArray([]);
$scope.ds = new kendo.data.SchedulerDataSource({
data: event
});
Setting event to null doesn't work, same for $scope.ds, I even iterate over event calling pull, nothing makes the data go away.
Help :)
I should mention, I put data back by using event.push
What is the best way? I am currently using the ObservableArrays like:
event = new kendo.data.ObservableArray([]);
$scope.ds = new kendo.data.SchedulerDataSource({
data: event
});
Setting event to null doesn't work, same for $scope.ds, I even iterate over event calling pull, nothing makes the data go away.
Help :)
I should mention, I put data back by using event.push