Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 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
  • 11:36
    Wed, Jul 29, 2015
    Telerik Web Controls Work Seamlessly with .NET4.6 and VS2015
  • 07:35
    Mon, Jul 27, 2015
    Kendo UI Webinar Wrap-Up and Winners
  • 03:00
    Mon, Jul 27, 2015
    What's Cooking for Q3 2015 in Telerik UI for WinForms
  • 04:42
    Fri, Jul 24, 2015
    Vote for Telerik for the American Business Awards
  • 02:00
    Fri, Jul 24, 2015
    SideDrawer for Xamarin.Forms Makes Navigation Easier
  • 01:30
    Fri, Jul 24, 2015
    Telerik Web UI products now support VS 2015 RTM
  • 07:16
    Thu, Jul 23, 2015
    Telerik .NET Products Ready for Visual Studio 2015 RTM
  • 03:02
    Thu, Jul 23, 2015
    An Excel-Like Experience with Web Apps
  • 05:48
    Wed, Jul 22, 2015
    Public and More Useful Documentation for UI for ASP.NET AJAX
  • 03:52
    Mon, Jul 20, 2015
    What’s Coming in Q3 2015 for UI for WPF and UI for Silverlight
  • 01:46
    Thu, Jul 16, 2015
    What Developers Think About IoT
  • 03:00
    Wed, Jul 15, 2015
    Test Studio R2 Release with Test Studio Mobile
  • 01:00
    Wed, Jul 15, 2015
    Announcing the Telerik Kendo UI Q3 2015 Roadmap
  • 02:42
    Tue, Jul 14, 2015
    The New .NET is Coming Fast Webinar Recap
  • 03:00
    Mon, Jul 13, 2015
    Telerik AppBuilder H2 2015 Roadmap
  • 01:00
    Fri, Jul 10, 2015
    Enhance Customization with Version NEXT UI for ASP.NET AJAX
  • 06:00
    Thu, Jul 9, 2015
    Create a Private NuGet Package Repo with UI for Xamarin
  • 03:00
    Thu, Jul 9, 2015
    Kendo UI at Any Screen Size
  • 01:00
    Thu, Jul 9, 2015
    Telerik Kendo UI is now HP Helion Certified
    
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?