Our pure JavaScript Scheduler component


Post by mathias »

Hi,

is there any chance to double size the height of the TreeSummary element with the normal grid row (leaf) elements (see screenshot)!?
The transformation goes over .b-grid-row, which is default:
$grid-row-height: 45px !default from variables.scss

https://bryntum.com/products/schedulerpro/examples/tree-summary-heatmap/

Thank you!

BR,
Mathias

Attachments
Bildschirmfoto 2025-05-06 um 12.45.05.png
Bildschirmfoto 2025-05-06 um 12.45.05.png (100.11 KiB) Viewed 195 times

Post by marcio »

Hey Mathias,

Thanks for reaching out.

To adjust the height of the TreeSummary row separately from the leaf rows, you can use the getRowHeight config in your grid setup. This allows you to specify different heights for different types of rows. Here's an example of how you might implement this:

new Grid({
    getRowHeight(record) {
        if (record.isTreeSummary) {
            return 90; // Double the default height for TreeSummary rows
        }
        return 45; // Default height for leaf rows
    }
});

Make sure to replace record.isTreeSummary with the appropriate condition to identify your TreeSummary rows.

For more details, you can refer to the getRowHeight config documentation.

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post by mathias »

hi marcio,

thank you for your reply. In my angular app i see the function in model but it is not called.

Attachments
Bildschirmfoto 2025-05-06 um 21.50.59.png
Bildschirmfoto 2025-05-06 um 21.50.59.png (140.67 KiB) Viewed 183 times

Post by tasnim »

Hi,

This is a bug. We already have a ticket for it here https://github.com/bryntum/support/issues/4383. I've added a comment about your issue to increase the ticket's priority.

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post Reply