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
2 years 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]
2 years 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
2 years ago.

will it work everywhere? For Gantt and scheduler columns?

Comment posted by Bikram Jeet Singh
2 years ago.

Can we use the sandbox version in Production?

Comment posted by Dan Letecky [DayPilot]
2 years 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/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.