I am building timeline view in the controller class in c#. (basically scheduler is created in controller class in my app), i am not getting the option to set second_scale .
can you give me the link where i can find samples regarding multi day events time line views creating in a controller class in c#.
In scheduler timeline we want to show multiple days. We want to show today’s date time with yesterdays date time also.
Here is my code-
var units = new TimelineView(“Orders”, “car_id”);
units.AddSecondScale(TimelineView.XScaleUnits.Day, “%F %d”); //units.Name = “Hi”;
units.X_Date = “%H”;
units.X_Step = 01;
units.X_Size = 20;
units.X_Start = 05;
units.X_Length = 24;
//width of the first column
units.Dx = 120;
//row height
units.Dy = 60;
//order bar height Added on 22-11-2017
units.EventDy = 20;
units.AddOptions(cars);
units.RenderMode = TimelineView.RenderModes.Bar;
scheduler.Views.Clear();
scheduler.Views.Add(units);
scheduler.InitialView = scheduler.Views[0].Name;
What changes need to be done, in order to get yesterdays datetime with today’s datetime?
Hi All,
In time line i wanted to show as it is in screen shot.
My code is live below. In page load i had given like below:-
scheduler.InitialDate = System.DateTime.Now.AddHours(-24);
And in ConfigureView my looks as below-
var units = new TimelineView(“Orders”, “car_id”);
units.AddSecondScale(TimelineView.XScaleUnits.Day, “%F %d”); //units.Name = “Hi”;
units.X_Date = “%H”;
// To Get D-12,D,D+12 hrs 27-11-2017
units.X_Step = 1;
units.X_Length = 24;
units.X_Size = 24 * 2;
units.X_Start = 12;
//width of the first column
units.Dx = 150;
//row height
units.Dy = 60;
//order bar height Added on 22-11-2017
units.EventDy = 20;
units.AddOptions(cars);
Am showing D-12, D and D+12 hrs in scheduler time line. So according to that i have to show 3 days range on timline_date.
What and all changes need to be done in coding. Please help me out as soon as possible. Thanks in advance.