Unplanned
Last Updated: 24 Jan 2020 07:22 by ADMIN
Thor Ludvig
Created on: 06 Dec 2019 08:06
Category: Timeline
Type: Feature Request
0
Same flexibility (in regard to dynamic parameters) in the Timeline datasource as for a normal grid datasource.

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"))

1 comment
ADMIN
Boyan Dimitrov
Posted on: 12 Dec 2019 16:56

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.