문제

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.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top