Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 08:05
    Wed, Aug 26, 2015
    Surprises About the State of Mobility
  • 06:42
    Wed, Aug 26, 2015
    An Interview with Progress CTO Matt Robinson
  • 04:00
    Wed, Aug 26, 2015
    Official MS Edge Support in UI for ASP.NET AJAX
  • 02:00
    Wed, Aug 26, 2015
    Understanding Fiddler Certificate Generators
  • 03:47
    Mon, Aug 24, 2015
    Use Candlestick Chart and DataSource for iOS to Display JSON
  • 05:14
    Thu, Aug 20, 2015
    API Testing with Telerik Fiddler
  • 05:07
    Wed, Aug 19, 2015
    Kendo UI DataSource Enlightenment
  • 07:47
    Mon, Aug 17, 2015
    Sydney TAFE Students Build Childcare App with Telerik
  • 03:00
    Mon, Aug 17, 2015
    Fast Track Your Native App Development Project
  • 02:01
    Thu, Aug 13, 2015
    Create an Objective-C Bridging Header for UI for iOS
  • 03:11
    Wed, Aug 12, 2015
    Why Implement Google Tag Manager in Your Android App Part 1
  • 03:00
    Tue, Aug 11, 2015
    Fast Track Your Hybrid App Development Project
  • 01:00
    Tue, Aug 11, 2015
    Drawing with RadImageEditor
  • 12:30
    Tue, Aug 11, 2015
    Progress Included in Three Gartner Magic Quadrants
  • 03:00
    Mon, Aug 10, 2015
    The Future is NOW for Screen Builder and the CLI
  • 03:00
    Fri, Aug 7, 2015
    How to Export WPF Visual Elements to PDF Documents
  • 03:00
    Thu, Aug 6, 2015
    Complete Office Inspired Apps with Telerik WPF Desktop Alert
  • 03:00
    Wed, Aug 5, 2015
    Modern Tooling for the the Next-Gen Windows Developer
  • 03:00
    Tue, Aug 4, 2015
    Fast Track Your Mobile Development Project
  • 07:00
    Mon, Aug 3, 2015
    Telerik UI for WPF and Silverlight Q2 2015 SP1 Are Out
  • 03:00
    Mon, Aug 3, 2015
    What's New in Telerik Platform for August 2015
  • 05:14
    Fri, Jul 31, 2015
    Q2 2015 SP1 for Telerik UI for ASP.NET AJAX is Out
  • 08:02
    Thu, Jul 30, 2015
    The Future of Mobile App Testing and Telerik Platform
  • 03:00
    Thu, Jul 30, 2015
    Latest TeamPulse R1 2015 Release
  • 05:51
    Wed, Jul 29, 2015
    Q2 2015 SP1 is Live Featuring RadDiagram Improvements
    
Isolate this demo as a stand-alone application

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 span.__group0.This way you could easily deliver public news to your site using your own formatting and styling.
<%@ Page AutoEventWireup="true" Inherits="Telerik.Web.Examples.Rotator.Functionality.LiveXML.DefaultCS"CodeFile="DefaultCS.aspx.cs" Language="C#"  %>

<!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>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container no-bg">
        <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>
            <telerik:RadRotator ID="RadRotator1" Skin="Silk" 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("be:published", NamespaceManager).ToString()) %>.png');">
                        <div class="dateTime">
                            <div class="time">
                                <%# (this.GetTimeOnly(XPath("be:published", NamespaceManager).ToString())) %>
                            </div>
                            <div class="date">
                                <%# (this.GetDateOnly(XPath("be:published", NamespaceManager).ToString()))%>
                            </div>
                        </div>
                        <div class="title">
                            <span>
                                <%# System.Web.HttpUtility.HtmlEncode(XPath("be:title", NamespaceManager).ToString())%>
                            </span>
                        </div>
                    </div>
                </ItemTemplate>
            </telerik:RadRotator>
            <asp:Label ID="lblMessage" Visible="false" CssClass="message" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?