More in this section

Forums / Developing with Sitefinity / Create radrotator items programmatically

Create radrotator items programmatically

4 posts, 0 answered
  1. Jeff
    Jeff avatar
    118 posts
    08 Jul 2011
    23 May 2012
    Link to this post
    Can someone tell me why this code doesn't work?

    <telerik:RadRotator ID="rotator1" runat="server" Width="800px" Height="150px" SlideShowAnimation-Type="Fade" SlideShowAnimation-Duration="500" ItemHeight="63" ItemWidth="125" RotatorType="Buttons" OnClientItemShown="OnClientItemShown"></telerik:RadRotator>
    var item = new Telerik.Web.UI.RadRotatorItem();
    item.Controls.Add(new LiteralControl("<div>1</div>"));
  2. MB
    MB avatar
    302 posts
    09 Jan 2005
    23 May 2012
    Link to this post
    You should probably ask that on the appropriate RadControls public forum.

    I would suspect it has something to do with needing to instantiate a template.
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    23 May 2012
    Link to this post

    Actually I am not sure what the final result should be. I suggest that you should go through official documentation and demos that will help you.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Brett Whittington
    Brett Whittington avatar
    89 posts
    10 Aug 2012
    01 Jun 2012
    Link to this post
    I wasn't realy happy with the RAD Rotator so I looked for JQuery Solutions to solve the problem.  I don't know your proficiency level with JQuery but this library was really easy to work with and they give you the CSS so you can pare it down to what you need.  If you find you don't like it is as well, I'd recommend jShowOff

    You can see my example on
4 posts, 0 answered