Rotator - Live XML

Data streamed live from
  • 10:36
    Fri, Apr 3, 2020
    Building a Music Player Application with Kendo UI and jQuery
  • 09:47
    Thu, Apr 2, 2020
    Life from Home: What Happens to Your Work-Life Balance if You Never Leave Home?
  • 06:26
    Thu, Apr 2, 2020
    Telerik UI for Blazor 2.10.0: ListView, Pager, Checkbox, WASM 3.2.0 Preview 3 Support and More!
  • 11:08
    Wed, Apr 1, 2020
    Learning About Material Design in Xamarin Forms
  • 10:18
    Tue, Mar 31, 2020
    How to Build Custom Forms with React Hooks
  • 05:03
    Tue, Mar 31, 2020
    Agenda View for ScheduleView Arrives in Telerik UI for WPF and Silverlight
  • 10:34
    Mon, Mar 30, 2020
    What's the Difference between .NET Core, .NET Framework, and Xamarin?
  • 10:12
    Mon, Mar 30, 2020
    Test Studio to Focus on Web Testing
  • 09:56
    Fri, Mar 27, 2020
    Brewing Better Barriers: Protect JavaScript Apps with JSDefender
  • 10:54
    Thu, Mar 26, 2020
    Why 2020 is the Year to get Serious About Accessibility: The Supreme Court isn’t Messing Around Anymore and Neither Should You
  • 10:38
    Wed, Mar 25, 2020
    How to Use the MediaElement in Xamarin.Forms
  • 10:48
    Tue, Mar 24, 2020
    How to Use the Navigation or Shadow Property in Entity Framework Core
  • 01:57
    Tue, Mar 24, 2020
    Why You Should Use Blazor over JavaScript Frameworks to Build Your Single-Page Application
  • 11:18
    Mon, Mar 23, 2020
    Building Modern & Performant Desktop Apps—Is WinUI 3.0 the Way to Go?
  • 10:08
    Fri, Mar 20, 2020
    Getting Started with Templated Picker for Xamarin
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?