0

In C#, I use this code to set the Dx property of the Timeline view

var timeline = new TimelineView("timeline", "EmployeeId");
timeline.Dx = 174;

But how can I achieve that using jQuery? I want to set the Dx property of an existing scheduler.

Jude Duran
  • 2,195
  • 2
  • 25
  • 41

1 Answers1

1

At the client-side timeline configs are stored in scheduler.matrix property. You can access certain config in following way:

scheduler.matrix["viewName"]

for example:

scheduler.matrix["timeline"].dx = 174;
scheduler.updateView();//apply changes
Paul
  • 1,656
  • 11
  • 16