How to clear marked span on view change

Hi
I dont want to delete one by one using "deleteMarkedTimespan(options); ".I want to clear all marked span on view change.how can i achieve this?

Hi,
just call the method without parameters. Also, probably you’ll need to use onBeforeViewChange event instead of onViewChange. addMarkedTimespan and deleteMarkedTimespan takes effect after redrawing the scheduler, so if you call them from onBeforeViewChange - they’ll be applied when scheduler renders the new view

scheduler.attachEvent("onBeforeViewChange", function(){ scheduler.deleteMarkedTimespan(); return true; });

:smiley: working awesome thank u very much