Search code examples
c#asp.net-mvcschedulerdhtmlxdhtmlx-scheduler

How to change column width of TimeLine Cell in DHTMLX - Scheduler .NET


I’m currently using DHTMLX - Scheduler .NET in ASP.NET MVC.

How to set width of event cell in TimelineView?

I see that property column_width in Client side works fine, But Server side is not available this props.

Note: Default width of this is 100px (I enabled horizontal scroll)

Now, I wanna set from 100px to 50px.

Does anyone have any idea for this issue ?

I really appreciate your help.

enter image description here


Solution

  • This property was missing and was added only starting from v4.0.2 of the nuget package https://www.nuget.org/packages/DHTMLX.Scheduler.NET/4.0.2 (published after your question)

    So if you update the library to the latest version, you should be able to use TimelineView.ColumnWidth property on the server:

    var timeline = new TimelineView("timeline", "section_id");
    timeline.ColumnWidth = 90;