See Technical Demos of the New Features in the DevCraft R2 2016 Release Webinar. Save Your Seat!

Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 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
  • 07:14
    Fri, Apr 22, 2016
    Test Studio Web and Desktop R1 2016 Updates
  • 03:58
    Wed, Apr 20, 2016
    The New and Improved Telerik Platform Companion App
  • 06:50
    Mon, Apr 18, 2016
    Forbes Hails Telerik Academy as "Incubator for Developers"
  • 03:29
    Thu, Apr 14, 2016
    Recapping the Test Studio 2016 R1 Release Webinar
  • 04:41
    Wed, Apr 13, 2016
    Bringing True Native App Development to Telerik Platform
  • 05:39
    Tue, Apr 12, 2016
    Meet Jochem Bökkers, Telerik Developer Expert for Sitefinity
  • 09:07
    Mon, Apr 11, 2016
    How We Test Software: Chapter Two—Telerik Platform
  • 01:30
    Fri, Apr 8, 2016
    Modern Tech Stack for ASP.NET Apps
  • 11:30
    Wed, Apr 6, 2016
    .NET Productivity Tools You Might Be Missing Out On
  • 11:30
    Tue, Apr 5, 2016
    Survey Report: Who is the .NET Developer of 2016?
  • 03:08
    Fri, Apr 1, 2016
    Let the New Test Studio Turn You Into a Mobile Testing Hero
  • 05:15
    Thu, Mar 31, 2016
    Live from Build 2016, Day 2: A Huge Day for .NET Developers
  • 04:15
    Thu, Mar 31, 2016
    Poll: 60% of Devs Will Soon Move to Win 10 Because of Bash
  • 06:11
    Wed, Mar 30, 2016
    Announcing UI for NativeScript—True Native Cross-Platform UI
  • 03:29
    Wed, Mar 30, 2016
    Telerik at /build 2016 and 500 UI for Xamarin Free Licenses
  • 10:33
    Fri, Mar 25, 2016
    Big Data, SaaS and Better Efficiency on the Progress Blog
  • 08:28
    Wed, Mar 23, 2016
    What to Expect From Microsoft Build—and Telerik
  • 02:34
    Tue, Mar 22, 2016
    How Our Telerik Teams Test Software: Chapter One
  • 03:46
    Fri, Mar 18, 2016
    Telerik Test Studio and Selenium
  • 09:00
    Wed, Mar 16, 2016
    Progress Honored by CRN, Forbes and Others
  • 09:26
    Fri, Mar 11, 2016
    Using NativeScript to Rewrite the Modulus App
  • 09:29
    Thu, Mar 10, 2016
    Visual and Dimension Improvements in UI for ASP.NET AJAX
  • 06:50
    Tue, Mar 8, 2016
    Telerik Won Four Awards With Telerik Academy in Bulgaria
    
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?