Rotator - Live XML

Data streamed live from
  • 04:03
    Wed, Jun 21, 2017
    Meet Jorge Cano, Developer Expert for NativeScript
  • 03:43
    Tue, Jun 20, 2017
    Integrate Assembly Diff in Your Build Using JustAssembly
  • 07:05
    Fri, Jun 16, 2017
    Announcing Reporting and Report Server 2017 R2 SP1 Features
  • 01:00
    Fri, Jun 16, 2017
    Kendo UI DevChat: Building User-Friendly Forms with Angular Recap
  • 02:03
    Thu, Jun 15, 2017
    Focus is on Performance in UI for Xamarin R2 2017 SP1
  • 06:30
    Wed, Jun 14, 2017
    Progress is More than a Friend to SOS Children’s Villages
  • 02:54
    Wed, Jun 14, 2017
    RadChart and RadListView Optimizations in UI for UWP SP1
  • 02:00
    Wed, Jun 14, 2017
    VirtualGrid Optmizations, Analytics Integration and More in UI for WPF
  • 01:00
    Wed, Jun 14, 2017
    Acting on Your Feedback in Telerik UI for WinForms R2 2017 SP1
  • 04:54
    Tue, Jun 13, 2017
    Kendo UI R2 2017 Release Webinar Recap
  • 03:54
    Tue, Jun 13, 2017
    Progress Named a Leader in Mobile App Dev by Gartner
  • 06:18
    Tue, Jun 6, 2017
    Progress Telerik R2 Release Webinar Recap
  • 03:59
    Tue, Jun 6, 2017
    Browser Calibration for Remote Machines in the Latest Test Studio
  • 05:33
    Fri, May 19, 2017
    Meet Johannes Hoppe, Developer Expert
  • 08:38
    Wed, May 17, 2017
    Gif Guide to Getting Started with Kendo UI
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?