Page 1 of 1

[ANGULAR] After Event Renderer

Posted: Fri Jun 09, 2023 11:09 pm
by portlink

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


Re: [ANGULAR] After Event Renderer

Posted: Mon Jun 12, 2023 8:38 am
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?


Re: [ANGULAR] After Event Renderer

Posted: Mon Jun 12, 2023 5:29 pm
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.


Re: [ANGULAR] After Event Renderer

Posted: Tue Jun 13, 2023 12:52 am
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


Re: [ANGULAR] After Event Renderer

Posted: Tue Jun 13, 2023 11:03 pm
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


Re: [ANGULAR] After Event Renderer

Posted: Thu Jun 15, 2023 7:56 pm
by alex.l

Re: [ANGULAR] After Event Renderer

Posted: Mon Jun 19, 2023 6:15 pm
by portlink

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