Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 08:39
    Wed, May 25, 2016
    Messaging and WebRTC Video with Telerik Platform and Bit6
  • 07:52
    Mon, May 23, 2016
    Navigating Product Growth with Telerik Analytics
  • 05:30
    Fri, May 20, 2016
    Turning RadEditor into a Markdown Editor
  • 07:46
    Thu, May 19, 2016
    Progress Wins Nine Recent Awards with a Chance for More
  • 06:30
    Wed, May 18, 2016
    Meet Jim Holmes: Developer Expert for Test Studio
  • 09:49
    Tue, May 17, 2016
    Ready-to-Use Grid UI for AngularJS Applications
  • 10:42
    Mon, May 16, 2016
    Telerik by Progress: What it Means for You
  • 08:58
    Fri, May 13, 2016
    NativeScript 2.0 Launch Webinar
  • 07:35
    Fri, May 13, 2016
    DevCraft R2 2016 Webinar Wrap-Up
  • 07:55
    Thu, May 12, 2016
    New Windows and NuGet Support for UI for Xamarin in R2 2016
  • 05:04
    Thu, May 12, 2016
    Recap of Telerik Platform NativeScript Webinar
  • 09:38
    Wed, May 11, 2016
    Bring Office 2016 Inspired Style to Your App with UI for WPF
  • 08:32
    Wed, May 11, 2016
    Productivity Boosts and More in UI for ASP.NET MVC R2 2016
  • 07:52
    Tue, May 10, 2016
    Angular 2 Support in UI for NativeScript 1.1.0
  • 01:00
    Mon, May 9, 2016
    Kendo UI R2 2016 Is Out
  • 12:30
    Fri, May 6, 2016
    Theming Improvements and Effects in UI for ASP.NET AJAX
  • 12:30
    Thu, May 5, 2016
    R2 2016 Delivers Top Requested Features for UI for WPF
  • 02:24
    Wed, May 4, 2016
    NG-Conf 2016 News and 500 UI for NativeScript Free Licenses
  • 02:00
    Wed, May 4, 2016
    Telerik Report Server Gains Data Alerts and More in R2 2016
  • 01:00
    Wed, May 4, 2016
    Long Awaited Features in R2 2016 for Telerik Reporting
  • 12:00
    Wed, May 4, 2016
    Modernize Your Applications with UI for WinForms R2 2016
  • 12:30
    Tue, May 3, 2016
    Telerik and Testdroid—Real Device Testing Made Easy
  • 06:57
    Mon, May 2, 2016
    Kendo UI SaveAs Webinar Wrap-Up
  • 01:30
    Tue, Apr 26, 2016
    Infographic: Who is the .NET Developer of 2016?
  • 05:08
    Mon, Apr 25, 2016
    Announcing the Telerik DevCraft R2 2016 Release Webinar
    
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?