Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 06:24
    Tue, Sep 27, 2016
    Improved ObjectDataSource Security
  • 08:11
    Mon, Sep 26, 2016
    New 3D Chart in UI for WPF
  • 11:30
    Mon, Sep 26, 2016
    AppBuilder 3.5 Release—Angular 2 in Focus
  • 07:31
    Thu, Sep 22, 2016
    Telerik Platform Webinar—Mobile App Development, Demystified
  • 02:44
    Wed, Sep 21, 2016
    Preparing Your Toolbox for the SharePoint Framework
  • 06:21
    Tue, Sep 20, 2016
    Announcing: Kendo UI for Angular 2 (2016 R3)
  • 07:09
    Fri, Sep 16, 2016
    UI for Android Brings AutoCompleteTextView and Gauges (Beta)
  • 09:02
    Thu, Sep 15, 2016
    R3 2016 Brings New Improvements to UI for WPF, Silverlight
  • 03:50
    Thu, Sep 15, 2016
    Angular 2 Is Here, and Kendo UI and NativeScript are Ready
  • 09:23
    Wed, Sep 14, 2016
    UI for Xamarin Now Officially Supports UWP
  • 04:31
    Wed, Sep 14, 2016
    Report Server Exposes RESTful APIs and More in R3 2016
  • 04:02
    Wed, Sep 14, 2016
    Reporting R3 2016 Arrives Packed with New Features
  • 01:56
    Wed, Sep 14, 2016
    Kendo UI at Angular Connect—Win Prizes and Learn What’s New
  • 01:25
    Wed, Sep 14, 2016
    New Mapping Visualization, More in UI for WinForms R3 2016
  • 02:53
    Fri, Sep 9, 2016
    How We Test Software: Chapter Three—Telerik Websites Division
  • 07:25
    Wed, Sep 7, 2016
    Meet Matt Millican, Developer Expert for Kendo UI
  • 03:05
    Wed, Aug 31, 2016
    New .NET and C# Roadmaps Pave the Way for Better Development
  • 04:30
    Tue, Aug 30, 2016
    Transform Your Apps with Telerik Mobile UI
  • 03:35
    Mon, Aug 29, 2016
    Into the Next Dimension
  • 02:40
    Thu, Aug 25, 2016
    UI for Xamarin with UWP Support (Beta) Now Available
  • 12:30
    Wed, Aug 24, 2016
    How We Test Software: Chapter Two—Telerik Platform Part Two
  • 03:06
    Mon, Aug 22, 2016
    PDF Security and Custom Actions in Reporting R3 2016 Beta 2
  • 08:20
    Tue, Aug 16, 2016
    The First Ever NativeScript Community Event
  • 03:57
    Mon, Aug 8, 2016
    Meet Osei Fortune, Developer Expert for NativeScript
  • 08:09
    Thu, Aug 4, 2016
    Living Dangerously Without mBaaS: Why Reinvent the Wheel?
    
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?