Rotator - Live XML

Data streamed live from
  • 03:47
    Wed, Aug 23, 2017
    Native to Cross-Platform Xamarin Webinar Recap
  • 03:59
    Mon, Aug 21, 2017
    The Evolution of Data Display: from HTML Tables to Advanced Grids
  • 06:25
    Thu, Aug 17, 2017
    Progress Telerik UI for UWP Joins the .NET Foundation
  • 08:04
    Wed, Aug 16, 2017
    Kendo UI DevChat Recap: Responsive Dashboards with Angular and Bootstrap 4
  • 08:09
    Tue, Aug 15, 2017
    Toolkits, Toolkits, Toolkits!
  • 04:45
    Thu, Aug 10, 2017
    New Addition to the Kendo UI Family
  • 03:10
    Wed, Aug 2, 2017
    Getting Started with Telerik UI for UWP
  • 06:36
    Fri, Jul 28, 2017
    Build Grid-like UI in Xamarin.Forms with Telerik ListView!
  • 02:57
    Fri, Jul 28, 2017
    8 Questions to Ask about 3rd Party Software
  • 02:09
    Thu, Jul 27, 2017
    How a Reporting Solution Can Solve Your Business Needs
  • 09:49
    Wed, Jul 26, 2017
    Cooking with ASP.NET Core and Angular
  • 08:15
    Fri, Jul 21, 2017
    Kendo UI DevChat: Export HTML and UI Widgets to PDF with JavaScript Recap
  • 07:42
    Thu, Jul 20, 2017
    Meet Scott Addie, Developer Expert for Kendo UI and UI for ASP.NET
  • 07:22
    Fri, Jul 14, 2017
    How to Migrate from StyleManager to Implicit Styles
  • 08:33
    Thu, Jul 13, 2017
    DigitalK: Artificial Intelligence is No Longer Hype, it’s Here to Stay
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?