Rotator - Live XML

Data streamed live from
  • 06:40
    Fri, May 24, 2019
    The Uno Platform And WebAssembly
  • 05:11
    Fri, May 24, 2019
    Creating a Serverless Application with KendoReact
  • 08:21
    Thu, May 23, 2019
    Header and Footer in Telerik UI for Xamarin ListView
  • 06:15
    Thu, May 23, 2019
    The Journey of JavaScript: from Downloading Scripts to Execution - Part II
  • 08:52
    Wed, May 22, 2019
    Using WebAssembly with React
  • 07:48
    Wed, May 22, 2019
    Build a Countries List with Telerik UI for WinForms DomainUpDown
  • 09:08
    Tue, May 21, 2019
    Build a Mini Vue Task Scheduler with the Kendo UI Scheduler Component
  • 03:39
    Tue, May 21, 2019
    10 Time-Saving CSS Tips I Learned the Hard Way When Using Sass
  • 08:14
    Mon, May 20, 2019
    Nine Performance Tips for Azure App Services
  • 07:53
    Mon, May 20, 2019
    3 Ways to Select Dates in Vue.js Forms Using Kendo UI DateInput Component
  • 08:40
    Fri, May 17, 2019
    How to Use a Vue Bar Chart UI Component in Your Web App
  • 04:29
    Wed, May 15, 2019
    What’s New in R2 2019 for Kendo UI
  • 04:03
    Wed, May 15, 2019
    Meet Telerik UI for WinForms FileDialogs, Simplified Ribbon and DomainUpDown in R2 2019
  • 03:59
    Wed, May 15, 2019
    Simplified RibbonView, New WebCam & TabbedWindow Controls, More in UI for WPF R2 2019
  • 03:13
    Wed, May 15, 2019
    What’s New in KendoReact with R2 2019
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?