Hello,
SmartClient Version: v9.1p_2014-09-10/Pro Development Only
Browser:Firefox 30.0
IE 8.0
The addEvent does only show the first event that is added. Subsequent addEvent() are not shown in the timeline but are shown, after the user scrolls with the scrollbars.
Demo: Please press button "New Event 1" and then "New Event 2"
and than scroll a small tick so that the second event is shown.
Your Version 9 Examples with a small modification:
the URL:
http://localhost:8080/smartclient/isomorphic/system/reference/SmartClient_Explorer.html#databoundTimeline
I added the following to the databoundTimeline.js code:
isc.Toolbar.create({
name:"toolbarmarStd",
ID:"toolbarmarStd",
autoDraw:true,
margin: 1,
height:24,
width:650,
buttons:[
{name:"createEvent1",ID:"createEvent_01", _constructor:"ButtonItem", width:120
,title:"New Event 1"
,click: function(){
var start = new Date(2012,6,09,10,30,5);
var end = new Date(2012,6,09,14,30,5);
var params = {lane: "kaiKong"};
timeline.addEvent(start, end, "1","2", params);
}
} ,
{name:"createEvent2",ID:"createEvent_02", _constructor:"ButtonItem", width:120
,title:"New Event 2"
,click: function(){
var start2 = new Date(2012,6,06,10,30,5);
var end2 = new Date(2012,6,06,14,30,5);
var params2 = {lane: "garretMonroe"};
timeline.addEvent(start2, end2, "1","2", params2);
}
}
]
});
Kind regards
Paul
SmartClient Version: v9.1p_2014-09-10/Pro Development Only
Browser:Firefox 30.0
IE 8.0
The addEvent does only show the first event that is added. Subsequent addEvent() are not shown in the timeline but are shown, after the user scrolls with the scrollbars.
Demo: Please press button "New Event 1" and then "New Event 2"
and than scroll a small tick so that the second event is shown.
Your Version 9 Examples with a small modification:
the URL:
http://localhost:8080/smartclient/isomorphic/system/reference/SmartClient_Explorer.html#databoundTimeline
I added the following to the databoundTimeline.js code:
isc.Toolbar.create({
name:"toolbarmarStd",
ID:"toolbarmarStd",
autoDraw:true,
margin: 1,
height:24,
width:650,
buttons:[
{name:"createEvent1",ID:"createEvent_01", _constructor:"ButtonItem", width:120
,title:"New Event 1"
,click: function(){
var start = new Date(2012,6,09,10,30,5);
var end = new Date(2012,6,09,14,30,5);
var params = {lane: "kaiKong"};
timeline.addEvent(start, end, "1","2", params);
}
} ,
{name:"createEvent2",ID:"createEvent_02", _constructor:"ButtonItem", width:120
,title:"New Event 2"
,click: function(){
var start2 = new Date(2012,6,06,10,30,5);
var end2 = new Date(2012,6,06,14,30,5);
var params2 = {lane: "garretMonroe"};
timeline.addEvent(start2, end2, "1","2", params2);
}
}
]
});
Kind regards
Paul
Comment