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

Adding Rotator Control programatically

5 Answers 82 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 31 Jan 2014, 11:20 PM
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.

5 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 05 Feb 2014, 04:38 PM
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
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.
0
Slav
Telerik team
answered on 18 Aug 2014, 01:29 PM
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
 

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

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