HI All,
I'm trying to dynamically add a Rotator Control from code behind, but can't figure out how to get the ItemTemplate in there. I saw this thread (http://www.telerik.com/forums/how-do-i-add-items-to-a-rotator-programmatically), but that has references to some declarative code.
Is there some sample code for adding a Rotator control "completely" from code behind available somewhere?
Thx in advance!
M.
I'm trying to dynamically add a Rotator Control from code behind, but can't figure out how to get the ItemTemplate in there. I saw this thread (http://www.telerik.com/forums/how-do-i-add-items-to-a-rotator-programmatically), but that has references to some declarative code.
Is there some sample code for adding a Rotator control "completely" from code behind available somewhere?
Thx in advance!
M.
5 Answers, 1 is accepted
0
Accepted
Hello Marcus,
I have attached a sample page that shows how to configure the ItemTemplate from code behind. Please use it as a reference for incorporating the desired functionality.
Regards,
Slav
Telerik
I have attached a sample page that shows how to configure the ItemTemplate from code behind. Please use it as a reference for incorporating the desired functionality.
Regards,
Slav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Nelson
Top achievements
Rank 1
answered on 13 Aug 2014, 06:33 PM
Hello.
I know this post is old but would like some help following the same thought.
Would do just that this same example using RadChart instead of the images?
I need to use a RadRotator to display multiple graphs that will be added dynamically.
I'm waiting, thanks.
I know this post is old but would like some help following the same thought.
Would do just that this same example using RadChart instead of the images?
I need to use a RadRotator to display multiple graphs that will be added dynamically.
I'm waiting, thanks.
0
Hi Nelson,
Please clarify whether you refer the obsolete RadChart control or RadHtmlChart. In both cases you can replace the image in the ItemTemplate of RadRotator with a programmatically created chart control in the example from my previous post. You can use the following examples as a reference for implementing the desired functionality:
I hope this helps. Feel free to contact us again if you run into more difficulties.
Regards,
Slav
Telerik
Please clarify whether you refer the obsolete RadChart control or RadHtmlChart. In both cases you can replace the image in the ItemTemplate of RadRotator with a programmatically created chart control in the example from my previous post. You can use the following examples as a reference for implementing the desired functionality:
- Creating RadChart Programmatically (RadChart)
- Creating RadChart Programmatically - more complex example (RadChart)
- Programmatic Chart Creation (RadHtmlChart)
I hope this helps. Feel free to contact us again if you run into more difficulties.
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.
0
Bhavya
Top achievements
Rank 1
answered on 10 Feb 2016, 06:53 AM
Hi slav,
i am also facing the same problem.
now i am unable to add charts to the rotator from code behind.
i have charts which are user controls, cant i add chart objects to the radrotator from code behind?
client side i am able to add but i want from code behind.
help me out from this. thanks in advance.
0
Bhavya
Top achievements
Rank 1
answered on 10 Feb 2016, 02:32 PM
No thanks :)
i worked on it ! and i did it :)