scheduler.resourceStore.data = resources;
scheduler.eventStore.data = events;
Support Forum
When I update the grid with an updated new set of data I need to keep the selected row and vertical scroll as previous states, current behaviour is it is scrolling up always and deselecting the selected row, is there way to do it?
Hi!
You could use State mixin functionality to load or save schedulerstate.
https://www.bryntum.com/docs/scheduler/#Core/mixin/State
Check this example
https://www.bryntum.com/examples/grid/state/
Or just use these properties to get/set selection and scroll positions.
https://www.bryntum.com/docs/scheduler/#Grid/view/mixin/GridSelection#property-selectedRecords
https://www.bryntum.com/docs/scheduler/#Core/widget/Widget#config-scrollable
https://www.bryntum.com/docs/scheduler/#Core/helper/util/Scroller#property-x
https://www.bryntum.com/docs/scheduler/#Core/helper/util/Scroller#property-y
You could use State mixin functionality to load or save schedulerstate.
https://www.bryntum.com/docs/scheduler/#Core/mixin/State
const
state = scheduler.state;
scheduler.resourceStore.data = resources;
scheduler.eventStore.data = events;
scheduler.state = state;
https://www.bryntum.com/examples/grid/state/
Or just use these properties to get/set selection and scroll positions.
https://www.bryntum.com/docs/scheduler/#Grid/view/mixin/GridSelection#property-selectedRecords
https://www.bryntum.com/docs/scheduler/#Core/widget/Widget#config-scrollable
https://www.bryntum.com/docs/scheduler/#Core/helper/util/Scroller#property-x
https://www.bryntum.com/docs/scheduler/#Core/helper/util/Scroller#property-y