This is a migrated thread and some comments may be shown as answers.

KenoUI DataViz charts inside Rotator Template

1 Answer 34 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Warrick
Top achievements
Rank 1
Warrick asked on 31 Jul 2014, 02:29 PM
Does anyone know if it is possible to load KenoUI DataViz charts inside a rotator template?

What I am trying to do is have one or more rotator templates populated showing a chart or a few charts next to each other and then when the rotator moves to the next template it will refresh the data for the new chart(s) so that if the data has changed the chart(s) will reflect the latest data.

What I have tried so far is not working... yet

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 05 Aug 2014, 11:56 AM
Hi Warrick,

You should be able to insert the KendoUI Charts in the ItemTemplate of RadRotator with a similar approach as the one that is shown in the following demo: http://demos.telerik.com/aspnet-ajax/rotator/examples/richcontent/defaultcs.aspx. The demo itself does not include charts, nevertheless the approach should be the same regardless of the content of the items.

As for refreshing the data source of the charts in the next rotator items, this needs to be handled additionally, because the rotator does not modify the content if its items. You could use the OnClientItemShown event in order to detect when a new item is shown and to update the charts inside manually: http://demos.telerik.com/aspnet-ajax/rotator/examples/clientapi/defaultcs.aspx 

Regards,
Slav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Rotator
Asked by
Warrick
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or