Rotator - Live XML

Data streamed live from
  • 07:19
    Fri, Oct 19, 2018
    What's New in Angular 7
  • 04:52
    Fri, Oct 19, 2018
    Top 5 Performance Tips for React Developers
  • 06:49
    Thu, Oct 18, 2018
    New Crystal WPF Report Viewer Theme in Telerik Reporting and Report Server R3 2018 SP1
  • 04:32
    Thu, Oct 18, 2018
    Null Values in Chart and Entry Selection in Telerik UI for Xamarin R3 2018 SP1
  • 03:18
    Thu, Oct 18, 2018
    Integrating Vue CLI 3 with Kendo UI
  • 08:29
    Wed, Oct 17, 2018
    Check Out What's New: Telerik UI for WPF, WinForms and UWP R3 2018 SP
  • 04:53
    Wed, Oct 17, 2018
    All About Angular Bindings
  • 08:14
    Tue, Oct 16, 2018
    Creating Internal Digital Products Your Team Will Actually Like To Use
  • 03:36
    Tue, Oct 16, 2018
    How to Create a Gist Download Chrome Extension Using React
  • 09:19
    Mon, Oct 15, 2018
    Introducing the Crystal Theme for WPF and WinForms—Get Started in Minutes
  • 04:30
    Mon, Oct 15, 2018
    Profiling React Components with the User Timing API
  • 08:33
    Fri, Oct 12, 2018
    Navigating Easily in PDF Documents with New Bookmarks Support in RadPdfViewer for WPF
  • 05:11
    Fri, Oct 12, 2018
    How to Use a jQuery DatePicker UI Component in Your Web App
  • 06:36
    Thu, Oct 11, 2018
    Microsoft Joins the Open Innovation Network: What You Need to Know
  • 11:17
    Thu, Oct 11, 2018
    What You Need to Know about Vue CLI 3
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?