1.Agenda view not resize day row height all row events.
- Event dayCellRenderer not running in AgendaView
my version calendar
- Bryntum Calendar 5.1.4
* - Copyright(c) 2022 Bryntum AB
1.Agenda view not resize day row height all row events.
my version calendar
Hey Oleg,
Thanks for the report. I tried to add the configuration that you shared in one of our demos, and it worked correctly, the margin was applied (as you'll see in the screenshot attached here).
Could you please provide more info about what is the expected behavior and how to reproduce it??
Best regards,
Márcio
If you are using a custom eventRenderer, you will have to set the AgendaColumn to autoHeight : true
meaning that the cell has to have its height measured by the RowManager in order to arrange the rows.
It does this automatically if you use a custom column renderer, but seems it needs to if you also use an event renderer.
try this as an override to AgendaView
:
changeColumns() {
const result = super.changeColumns(...arguments);
// Custom columns and AgendaColumns with custom renderer or eventRenderer will be autoHeight
result?.forEach?.(c => {
c.autoHeight = !c.isAgendaColumn || (c.renderer || this.eventRenderer);
});
return result;
}```
Our custom-rendering example suffers from this bug. Here is the ticket: https://github.com/bryntum/support/issues/5495
I'm sorry, but when I put autoHeight: true, it suddenly gives me no data, when I put this autoHeight back, it returns a list, but it's not resolved, I also got version 5.2, the data is there in the monthly or weekly view, it works fine. Where I make a mistake, I can upload a video or I don't know how to document it for you.
I also tried your example in the demo and it can also be seen that if I insert autoHeight: true it doesn't show anything, an error will probably occur.
URL:https://bryntum.com/examples/calendar/shifted/