Adding Rotator Control programatically

6 posts, 1 answers
  1. Marcus
    Marcus avatar
    30 posts
    Member since:
    Feb 2009

    Posted 31 Jan 2014 Link to this post

    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.
  2. Answer
    Slav
    Admin
    Slav avatar
    1356 posts

    Posted 05 Feb 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nelson
    Nelson avatar
    1 posts
    Member since:
    Sep 2012

    Posted 13 Aug 2014 in reply to Slav Link to this post

    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.
  5. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 18 Aug 2014 Link to this post

    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.

     
  6. Manu
    Manu avatar
    24 posts
    Member since:
    Aug 2015

    Posted 10 Feb in reply to Slav Link to this post

    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.

  7. Manu
    Manu avatar
    24 posts
    Member since:
    Aug 2015

    Posted 10 Feb in reply to Manu Link to this post

    No thanks :)

    i worked on it ! and i did it :)

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017