Hi,
In Month and Week view using the below code, the date is only showing the start date, and not the date range. See attached 2nd image, it does not have a date range? Do you know why this would be?
[code]
var sType = “Bar”;
var sUnit = “minute”;
var sDate = “%H:%i”;
var iStep = 30;
var iSize = 24;
var iStart = 16;
var iLength = 48;
if (bCell){
sType = "cell";
}
switch (sView){
case “Hour”:
sUnit = “minute”;
sDate = “%H:%i”; // Hour and Day.
iStep = 30;
iSize = 30;
iStart = 16;
iLength = 48;
break;
case “Day”:
sUnit = “hour”;
sDate = “%H:%i”; // Hour and Day.
iStep = 1;
iSize = 24;
iStart = 1;
iLength = iSize;
break;
case “Week”:
sUnit = “day”;
sDate = “%D %M %d”;
iStep = 1;
iSize = 7;
iStart = 0;
iLength = iSize;
break;
case “Month”:
sUnit = “week”;
sDate = “%D %M %d”;
iStep = 1;
iSize = 4;
iStart = 0;
iLength = iSize;
break;
case “Year”:
sUnit = “month”;
sDate = “%M %Y”;
iStep = 1;
iSize = 12; // How many months
iStart = 0;
iLength = iSize;
break;
case “Default”:
break;
}
scheduler.createTimelineView({
name: "timeline",
x_unit: sUnit,
x_date: sDate,
x_step: iStep,
x_size: iSize,
x_start: iStart,
x_length: iLength,
y_unit: sections,
y_property: "section_id",
render:sType
});[/code]
Many thanks.