Our pure JavaScript Scheduler component


Post by Samith »

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?
scheduler.resourceStore.data = resources;
scheduler.eventStore.data = events;

Post by Samith »

any update on this?

Post by sergey.maltsev »

Hi!

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;
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

Post by Samith »

it gives this error
2020-03-05 09_17_56-DevTools - localhost_8080_pronto_rest_rmssrc_secureapi_www_index.html.png
2020-03-05 09_17_56-DevTools - localhost_8080_pronto_rest_rmssrc_secureapi_www_index.html.png (18.16 KiB) Viewed 1560 times

Post by Samith »

It was a zoom level issue, Issue has been fixed now, Thank you

Post Reply