Our pure JavaScript Scheduler component


Post by portlink »

Is there an event for after all the events are rendered?


Post by tasnim »

Hi,

Could you please explain a bit further what do want to achieve? Why do you need to listen for an event that will fire after all events are rendered?


Post by portlink »

I needed to get a list of all the column elements on the scheduler. I was using "document.querySelectorAll('div[data-event-id]')" to do it. If you have an alternate solution for this it would be great. I wanted the event at the end simply because i just needed all the elements to be rendered first, but if there is another way to access these after they are rendered then that would no longer be needed.


Post by marcio »

Hey portlink

You can get the columns records by accessing

scheduler.columns.records

And from there, you can iterate inside of them to get the element property of each record https://bryntum.com/products/scheduler/docs/api/Grid/column/Column#property-element

Best regards,
Márcio


Post by portlink »

Sorry, I meant I needed all of the elements of the events/assignments after I rendered them. Not the elements of the timeaxiscolumns.
I am using vertical mode if this changes things


Post by alex.l »

All the best,
Alex


Post by portlink »

event paint did not work, but i was able to use renderevent for what i wanted. Thank you


Post Reply