Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 01:30
    Fri, Jun 24, 2016
    Kendo UI R2'16 Release Webinar Wrap Up
  • 09:18
    Thu, Jun 23, 2016
    Meet the New Create Project Wizard for UI for ASP.NET AJAX
  • 03:57
    Wed, Jun 22, 2016
    Expect New List Controls and More in Telerik ASP.NET AJAX
  • 12:20
    Tue, Jun 21, 2016
    Webinar Follow-up: New Testing Battlefields
  • 06:53
    Mon, Jun 20, 2016
    Save Time with NuGet Packages for UI for Xamarin
  • 12:42
    Mon, Jun 20, 2016
    Get Official ASP.NET Core 1.0 Support in Telerik ASP.NET MVC
  • 05:05
    Fri, Jun 17, 2016
    The Road to Improving the Digital IQ of Your Organization
  • 03:45
    Fri, Jun 17, 2016
    New UX and Security Upgrades in Reporting and Report Server
  • 03:59
    Thu, Jun 16, 2016
    Meet Nathan Walker: Developer Expert for NativeScript
  • 08:57
    Wed, Jun 15, 2016
    R2 2016 Service Pack for UI for WPF and Silverlight is Out
  • 07:40
    Mon, Jun 13, 2016
    Using a Candlestick Chart in Xamarin Forms
  • 03:20
    Mon, Jun 13, 2016
    Are You Ready for the New Testing Battlefields?
  • 08:29
    Fri, Jun 10, 2016
    HubSpot Again Ranks Telerik.com Tops in Homepage Design
  • 08:08
    Fri, Jun 10, 2016
    Increased Stability in Telerik UI for WinForms R2 2016 SP1
  • 04:23
    Fri, Jun 10, 2016
    Stability Improvements in R2'16 SP1 of UI for ASP.NET AJAX
  • 04:51
    Wed, Jun 8, 2016
    UI for ASP.NET MVC Now Supports ASP.NET Core 1.0 RC2
  • 11:30
    Tue, Jun 7, 2016
    AppBuilder CLI Deprecating Support for Node.js 0.10
  • 02:55
    Mon, Jun 6, 2016
    Telerik and Testdroid Webinar Bonus Q&A
  • 03:46
    Fri, Jun 3, 2016
    A Powerful Case Study on Telerik Analytics: Test Studio
  • 08:54
    Thu, Jun 2, 2016
    Easily Set Up Kendo UI for React Development with nwb
  • 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
    
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?