Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 06:00
    Wed, Feb 10, 2016
    Vassil Terziev, Progress CIO, on Cover of Forbes Bulgaria
  • 02:00
    Wed, Feb 10, 2016
    Announcing the Telerik Kendo UI R2 2016 Roadmap
  • 05:23
    Tue, Feb 9, 2016
    Looking Back and Ahead as We Recap the Test Studio Webinar
  • 06:00
    Mon, Feb 8, 2016
    Meet the M.o.N.K.E.y Stack!
  • 05:20
    Fri, Feb 5, 2016
    Recap of the Telerik DevCraft R1 2016 Release Webinar
  • 11:17
    Fri, Feb 5, 2016
    Telerik Party at /BUILD! Join Us!
  • 09:54
    Thu, Feb 4, 2016
    Stepping into the Cloud: Enterprise Edition
  • 05:49
    Thu, Feb 4, 2016
    Choose Time Intervals with the new RadTimeSpanPicker for WPF
  • 11:06
    Fri, Jan 29, 2016
    With Parse Closing, Can You Still Trust Your Dev Tool?
  • 09:41
    Fri, Jan 29, 2016
    Kendo UI RQ1 2016 Webinar
  • 09:31
    Thu, Jan 28, 2016
    Coding a Cross-Platform Mobile App in Just One Day
  • 02:00
    Wed, Jan 27, 2016
    What to Expect in 2016 for Kendo UI with Angular 2 and More
  • 07:46
    Tue, Jan 26, 2016
    UI for WU gets ImageEditor and ListView handles in Q1 2016
  • 09:42
    Mon, Jan 25, 2016
    Color Theme Generator is now available for WPF
  • 05:21
    Fri, Jan 22, 2016
    Looking Back and Ahead at the Telerik Test Studio Webinar
  • 06:44
    Thu, Jan 21, 2016
    UI for UWP is Officially Here, Bringing DataGrid Beta
  • 02:30
    Wed, Jan 20, 2016
    Announcing the Telerik DevCraft R1 2016 Release Webinar
  • 02:30
    Tue, Jan 19, 2016
    Telerik Starts 2016 with 2 Forbes Business Awards
  • 09:44
    Mon, Jan 18, 2016
    Presenting the WPF TouchManager
  • 07:36
    Fri, Jan 15, 2016
    The Telerik Platform Year in Review for 2015
  • 07:30
    Thu, Jan 14, 2016
    New Theme and Control plus Much More in UI for WPF Q1 2016
  • 06:41
    Wed, Jan 13, 2016
    Get your Apps Modernized for you with UI for ASP.NET AJAX
  • 02:00
    Wed, Jan 13, 2016
    Telerik Kendo UI Q1 2016 is Here
  • 12:00
    Wed, Jan 13, 2016
    First VirtualGrid with Hierarchy Support in WinForms Q1 2016
  • 07:48
    Mon, Jan 11, 2016
    Important Update from Telerik Regarding TeamPulse Licenses
    
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

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.
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ 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 RenderMode="Lightweight" 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?