Rotator

Controls

Rate this demo

Thank you for your post!
Submit a support ticket
If you have an active license or trial, you have access to dedicated support from Telerik’s developers. Response time is 24h for active licenses and 72h for trials, Mon-Fri.
Post in the forums
If you don’t have access to support or would like to help other people by sharing your problem, reach out to our active community in the forums.

Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik

  • 11:36
    Fri, Oct 31, 2014
    UI for WinForms Q3 2014 is Here Introducing RadRadialGauge, RadCheckedDropDownList, RadRichTextEditor (Beta) and A Lot More
  • 09:11
    Fri, Oct 31, 2014
    Announcing UI for Android Q3 2014
  • 06:16
    Fri, Oct 31, 2014
    Telerik AppBuilder October Release: iOS 8 Support, Device Simulator Improvements and Build Configurations
  • 02:22
    Thu, Oct 30, 2014
    Let Us Take You on a Trip to Mars
  • 12:40
    Thu, Oct 30, 2014
    Swift Support and Chart Improvements in UI for iOS Q3 2014
  • 08:40
    Thu, Oct 30, 2014
    What’s Ahead for JustCode
  • 07:17
    Wed, Oct 29, 2014
    Weekly Dose of Telerik Support Resources 10/20/2014
  • 01:10
    Wed, Oct 29, 2014
    Q3 2014 Telerik UI for WPF and Telerik UI for Silverlight Are Here
  • 09:00
    Wed, Oct 29, 2014
    Telerik Kendo UI Q3 2014 Beta Preview
  • 06:25
    Wed, Oct 29, 2014
    See What’s New in Telerik Reporting Q3’14
    
Live XML

RadRotator has support for live XML feeds. You can make use of this feature very easily - all you need to do is use a XmlDataSource source and set it to the URL of the live feed. Finally, you might need to set the XmlDataSource's XPath (e.g. "rss/channel/item" for RSS feeds).This way you could easily deliver public news to your site using your own formatting and styling.

C# VB
Show code in new window Demo isolation steps
<%@ Page AutoEventWireup="true" Inherits="Telerik.Web.Examples.Rotator.Functionality.LiveXML.DefaultCS"CodeFile="DefaultCS.aspx.cs" Language="C#"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>ASP.NET Rotator Demo - Live XML</title>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
    <a href='<%# XPath("pubDate").ToString()%>' style="cursor: pointer; text-decoration: none; color: Black; background-image: url('IMAGES/Monday.png');"></a>
    <div style="width: 100%;">
        <div class="backElement">
            <div class="titleText">
                Data streamed live from <a href="http://feeds.feedburner.com/Telerik">http://feeds.feedburner.com/Telerik</a><br />
            </div>
            <br class="qsf-clear-float" />
            <telerik:RadRotator ID="RadRotator1" RotatorType="AutomaticAdvance" ScrollDirection="Up"
                ScrollDuration="2000" runat="server" Width="493"
                ItemWidth="493" Height="192" ItemHeight="64" FrameDuration="1" InitialItemIndex="-1"
                CssClass="rotator">
                <ItemTemplate>
                    <div class="itemTemplate" style="background-image: url('IMAGES/<%# this.GetDayOfWeek(XPath("pubDate").ToString()) %>.png');">
                        <div class="dateTime">
                            <div class="time">
                                <%# (this.GetTimeOnly(XPath("pubDate").ToString())) %>
                            </div>
                            <div class="date">
                                <%# (this.GetDateOnly(XPath("pubDate").ToString()))%>
                            </div>
                        </div>
                        <div class="title">
                            <span>
                                <%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString())%>
                            </span>
                        </div>
                    </div>
                </ItemTemplate>
            </telerik:RadRotator>
            <asp:Label ID="lblMessage" Visible="false" CssClass="message" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>