Rotator - Live XML

Data streamed live from
  • 08:25
    Fri, Apr 21, 2017
    Easier Setup and Fast Development with UI for Xamarin
  • 09:17
    Thu, Apr 20, 2017
    NativeScript CLI to Telerik Platform—There and Back Again
  • 11:30
    Wed, Apr 19, 2017
    Built-in High DPI Support Coming to Telerik UI for WinForms
  • 12:00
    Tue, Apr 18, 2017
    Upcoming RadScheduleView Features in R2 2017 of UI for WPF
  • 07:00
    Wed, Apr 12, 2017
    //Build 2017—Join Our Pre-Conference Progress Telerik Party
  • 11:30
    Tue, Apr 11, 2017
    New Features in Reporting R1 2017 SP2 and Report Server R1 2017 SP1
  • 06:43
    Mon, Apr 10, 2017
    Choosing the Right Technology for Your Next .NET Desktop Application
  • 01:00
    Thu, Apr 6, 2017
    Ensure Version Compatibility with JustAssembly
  • 05:48
    Wed, Apr 5, 2017
    Build Beautiful Native Apps with Free NativeScript Training
  • 08:12
    Thu, Mar 30, 2017
    Ship Quickly, Ship Quality: The Developer’s Quest
  • 09:36
    Mon, Mar 27, 2017
    The Most Commonly Reinvented Wheels in Software
  • 03:39
    Tue, Mar 21, 2017
    The Brosteins: Meet Developer Experts Nick & Mike Branstein
  • 06:29
    Wed, Mar 15, 2017
    Kendo UI for React in 2017
  • 02:33
    Fri, Mar 10, 2017
    Latest Test Studio Brings New Reports and HTML Results
  • 02:00
    Wed, Mar 8, 2017
    Build Your First App with UI for Xamarin and Visual Studio 2017
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" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <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=""></a><br />
            <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"
                    <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 class="date">
                                <%# (this.GetDateOnly(XPath("be:published", NamespaceManager).ToString()))%>
                        <div class="title">
                                <%# System.Web.HttpUtility.HtmlEncode(XPath("be:title", NamespaceManager).ToString())%>
            <asp:Label ID="lblMessage" Visible="false" CssClass="message" runat="server" />

Find Assistance

Help Us Improve

Was this example helpful?