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

Erasing all data (Angular)

1 Answer 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Curt
Top achievements
Rank 1
Curt asked on 16 Mar 2015, 04:51 AM
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

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 18 Mar 2015, 07:08 AM
Hello Curt,

I would suggest you clear the data using data source's data method. This will clear the data source content and will update the scheduler. If this does not work, then I will ask you to send us a repro demo that demonstrates what exactly is going wrong.

Regards,
Georgi Krustev
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
Curt
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or