search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Any Option for Max-Width for the columns or Resizable height

Asked by Bikram Jeet Singh
1 month ago.

Hello,

I am working on a project, where I am showing the columns as Subject, AssignedTo(Whom the task is assignedTo - Can be assignedTo multiple people), so I was storing the mailIds of users that are assigned.
If there are multiple people assigned, the string becomes quite large, and the column takes its width, so is there any way where can give the max-width of column.(shown in 'width' screenshot)

I also tried the onBeforeRowHeaderRender function, to split the mailIds by ";", and showing each of them in one line, but then the height is not changing(shown in the 'height' screenshot)

Thank-you

Answer posted by Dan Letecky [DayPilot]
1 month ago.

In the latest sandbox build (2022.4.5479), there is now a new property (maxAutoWidth) added to the rowHeaderColumns array items that lets you specify a maximum width that will be respected during row header width auto-fit (https://doc.daypilot.org/scheduler/row-header-width-auto-fit/):

rowHeaderColumns: [
  { text: "Subject" },
  { text: "Assigned To", maxAutoWidth: 200 }
]
Comment posted by Bikram Jeet Singh
1 month ago.

will it work everywhere? For Gantt and scheduler columns?

Comment posted by Bikram Jeet Singh
1 month ago.

Can we use the sandbox version in Production?

Comment posted by Dan Letecky [DayPilot]
1 month ago.

It's available in the Gantt chart component as well:
https://doc.daypilot.org/gantt/row-header-width-auto-fit/

It's not possible to use the sandbox version in production. You'll need to wait for the next release:
https://release.daypilot.org/changes/js/

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):