Auto Width on Grouping columns

I can set a fixed width for my child td's but im looking for an auto width so it resize to the size of my labels inside it, when i set the width to auto it scale way to much how cna i fix it

.timeline-resource-grouping.e-schedule .e-timeline-view .e-resource-left-td,
.timeline-resource-grouping.e-schedule .e-timeline-month-view .e-resource-left-td {
width: 100px;
}

1 Reply

VR Vijay Ravi Syncfusion Team December 16, 2024 01:08 PM UTC

Hi Arturo,
 

If you set the resource group columns' width to 'auto' in the Scheduler, the default applied width will take effect, but it will not dynamically adjust based on the size of the labels inside it. To ensure the columns resize automatically to fit the content, you would need to apply custom CSS or calculate and set the width programmatically based on the label size.

Sample: resource header customization (forked) - StackBlitz


Don't hesitate to get in touch if you require further help or more information.

Regards,

Vijay


Loader.
Up arrow icon