Resource column width react schedule

I want to make the resource column wider in all timeline views. I have cars as resources and in the resource cell for each car I have an avatar and a description but it doesn't fit. I'm working in react class component.


Attachment: ss_50ee9289.rar

3 Replies

VS Venkateshwaran Saravanakumar Syncfusion Team July 28, 2023 03:43 PM UTC

Hi Nikola,

Sample: https://stackblitz.com/edit/react-schedule-resourcecolumn-width-9cvqpe?file=index.js,index.css

You can achieve your requirement of making the resource column wider in all timeline views by overriding the default Scheduler CSS styles, as demonstrated in the code snippet below.

[index.js]

<ScheduleComponent

            cssClass="timeline-resource-grouping"

            width="100%"

            height="650px"

            selectedDate={new Date(202304)}

            currentView="TimelineDay"

            workDays={workDays}

            eventSettings={dataSource: data }}

            group={resources: ['Projects''Categories'] }}

          >


[index.css]

.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{

    width300px;

}




Regards,
Venkatesh



Nikola Škeva replied to Venkateshwaran Saravanakumar July 28, 2023 05:14 PM UTC

Hey thank you for the answer, is there any way I can make the column resize to fit the biggest content from all of the cells.



SK Satheesh Kumar Balasubramanian Syncfusion Team July 31, 2023 12:23 PM UTC

Hi Nikola,

According to the current schedule architecture, we will not predict the length of the resource text. You have to set the standard width as mentioned in the previous update.

Regards,
Satheesh Kumar B

Loader.
Up arrow icon