Smartclient Version: v9.0p_2013-08-20/Pro
Browser: Firefox 21.0
Hello
When I drag a record on a timeline window and try to get the active time with timeline.getActiveTime() the value is either null or wrong.
see Demo below (modified version form your homepage examples):
Kind regards
Paul
var developers = [
{ name: "charlesMadigen", title: "Charles Madigen" },
{ name: "tamaraKane", title: "Tamara Kane" },
{ name: "darcyFeeney", title: "Darcy Feeney" },
{ name: "kaiKong", title: "Kai Kong" },
{ name: "shellyFewel", title: "Shelly Fewel" },
{ name: "garretMonroe", title: "Garret Monroe" }
];
var _calStart = isc.DateUtil.getStartOf(new Date(2012, 6, 5), "W");
var _calEnd = _calStart.duplicate();
_calEnd.setDate(_calEnd.getDate() + 20);
isc.Timeline.create({
ID: "timeline",
height: 451,
startDate: _calStart,
endDate: _calEnd,
data: events,
lanes: developers,
headerLevels: [ { unit: "week" }, { unit: "day" } ],
canResizeTimelineEvents: true,
canEditLane: true,
backgroundClick : function(){
isc.say("Date:" + this.getActiveTime()!=null?this.getActiveTime():"nix");
return false;
}, showEventDescriptions: false,
labelColumnWidth: 120
});
Browser: Firefox 21.0
Hello
When I drag a record on a timeline window and try to get the active time with timeline.getActiveTime() the value is either null or wrong.
see Demo below (modified version form your homepage examples):
Kind regards
Paul
var developers = [
{ name: "charlesMadigen", title: "Charles Madigen" },
{ name: "tamaraKane", title: "Tamara Kane" },
{ name: "darcyFeeney", title: "Darcy Feeney" },
{ name: "kaiKong", title: "Kai Kong" },
{ name: "shellyFewel", title: "Shelly Fewel" },
{ name: "garretMonroe", title: "Garret Monroe" }
];
var _calStart = isc.DateUtil.getStartOf(new Date(2012, 6, 5), "W");
var _calEnd = _calStart.duplicate();
_calEnd.setDate(_calEnd.getDate() + 20);
isc.Timeline.create({
ID: "timeline",
height: 451,
startDate: _calStart,
endDate: _calEnd,
data: events,
lanes: developers,
headerLevels: [ { unit: "week" }, { unit: "day" } ],
canResizeTimelineEvents: true,
canEditLane: true,
backgroundClick : function(){
isc.say("Date:" + this.getActiveTime()!=null?this.getActiveTime():"nix");
return false;
}, showEventDescriptions: false,
labelColumnWidth: 120
});
Comment