Hi,
I have tried to get the Timeline datasource to refresh when a datarow command in a grid is selected.
The gridrow has a patientid, and I would like to show a Timeline for the patient contact dates with the hospital.
The trouble is that the datasource for Timeline don't have the same functionality for filtering/parameters as the 'normal' datasource, and does not support .Data(..).
Example (not implemented in the Timeline datasource):
.Read(read => read.Action("GetSurgeryEvents", "TimeLine").Data("setTimeLineParam"))
Hello,
I would suggest to access the Kendo UI DataSource instance associated with the Timeline widget and use the filter method to filter the data in the DataSource. It should trigger re-render of the timeline and show only the filtered items/events.
To access the Kendo UI DataSource instance of a Kendo UI Timeline is:
<script>
var ds = $("#timeline").data().kendoTimeline.dataSource;
ds.filter(...filter expression goes here);
</script>
Regards,
Boyan Dimitrov
Progress Telerik