bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

[ANGULAR] Avoid refreshing all data / Add more options for re-rendering events #6198

Open marciogurka opened 1 year ago

marciogurka commented 1 year ago

Forum post

"Hi all, We have one array which contains all the events. this array is set to bryntum scheduler angular component. public events:eventsVisible[] = [array of events] in the template

<bryntum-scheduler [events]="eventsVisible ...

When I dynamically add a new element to eventsVisible array, bryntum is rendering the complete list again. Is there any way to re-render only the new event added or the event I have edited? Thanks in advance!"

marciogurka commented 1 year ago

Suggestion from the user

[...] Could be nice for next release to have more control about what Bryntum component should re-paint or no. For example, if I set a new element in my event list var which is binded with the events property of the Bryntum component, Bryntum only should paint the new event. Maybe with a caching system and keeping track of what is already rendered and what is not in the event list. We get ugly repainting of all turns on the screen every time we add or remove a turn from our event list variable.

jsakalos commented 1 year ago

@marciogurka we have setting of syncDataOnLoad on stores. React wrapper sets it to true by default but Angular does not. So it has to be changed manually by configuring each relevant store.