Hi,
I'm using the .open() method on a timeline. When opening an event with this method, the little triangular caret on the event card is not consistently displayed.
This is what I expect to see. The triangle is displayed when I click on an event.
When an event is opened via the .open() method, the caret is not usually displayed (but sometimes it is, this is not consistent).
Code:
// eventData comes from an ajax call, this function is invoked in the callback
function initTimeline(eventData) {
$("#timeline").unbind();
$("#timeline").html('');
$("#timeline").removeClass();
timeline = $("#timeline").kendoTimeline({
eventTemplate: kendo.template($("#eventTemplate").html()),
dateFormat: "MMMM yyyy",
orientation: timelineOrientation,
collapsibleEvents: true,
dataSource: {
data: eventData,
schema: {
model: {
fields: {
date: {
type: "date"
},
}
}
}
},
dataBound: function (e) {
data = e.sender.dataSource.data();
// Create the timeline type filter menu
createTimelineFilterMenu();
// Initalize any timeline datatables
fInitAllDataTables();
},
change: function (e) {
setTimeout(fInitAllDataTables, 1000);
}
});
// this is called on button click, it opens the first event in the timeline
function goToFirst() {
var kendoTimeline = $("#timeline").data().kendoTimeline;
var firstEvent = kendoTimeline.element.find(".k-timeline-track-item:not(.k-timeline-flag-wrap):first");
kendoTimeline.open(firstEvent);
}