Hi folks,
I need to force a re-rendering of the work-cells after a "viewNavigate" or "dateNavigate" action. When I do a "scheduleObj.refresh()" for those actions in the "actionComplete" event handler, I get an error (pls. also check a reproducing
stackblitz). Pls see below.
II also have seen that the scheduleObj seem to have a method called "refreshLayout()", which is not documented in the API documentation. Where would I find info on this method as I hope it offers a way to not refresh the whole schedule, but allows to e.g. selectively refresh the workCells.
(Btw - in some of your examples on the web I've seen references to other properties/methods where the docu does not offer any information (e.g. "scheduleObject.eventBase", "scheduleObj.activeView")
{error: TypeError: Cannot read property 'element' of null
at HeaderRenderer.push../node_modules/@syncfu…}
custom-error-handler.ts:12 TypeError: Cannot read property 'element' of null
at HeaderRenderer.push../node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/header-renderer.js.HeaderRenderer.toolbarClickHandler (header-renderer.js:419)
at Observer.push../node_modules/@syncfusion/ej2-base/src/observer.js.Observer.notify (observer.js:99)
at Toolbar.push../node_modules/@syncfusion/ej2-base/src/base.js.Base.trigger (base.js:181)
at Toolbar.push../node_modules/@syncfusion/ej2-navigations/src/toolbar/toolbar.js.Toolbar.clickHandler (toolbar.js:599)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:27859)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:503)
at invokeTask (zone.js:1671)