Rotator - Live XML

Data streamed live from
  • 07:29
    Fri, Feb 21, 2020
    Getting Started with Date and Time Picker for Xamarin
  • 06:25
    Fri, Feb 21, 2020
    Telerik UI for WinForms R1 2020 SP is Here with 35+ Improvements
  • 02:36
    Thu, Feb 20, 2020
    A Practical Guide to Angular: Routing and Event Handling
  • 01:17
    Thu, Feb 20, 2020
    Master these JavaScript Fundamentals to Land Your Next Job
  • 06:49
    Wed, Feb 19, 2020
    Telerik UI for Xamarin R1 2020 SP: Sticky ListView Group Headers, Improved Pickers & More
  • 05:34
    Wed, Feb 19, 2020
    Show PDF Files within Your ASP.NET Web Form Page in No Time
  • 04:57
    Wed, Feb 19, 2020
    Telerik UI for WPF R1 2020 Service Pack Brings 80+ Improvements
  • 09:49
    Tue, Feb 18, 2020
    The Mindset of Component Composition in Vue
  • 09:35
    Fri, Feb 14, 2020
    How to Build Forms with React the Easy Way
  • 07:54
    Thu, Feb 13, 2020
    Working With GraphQL In Angular: How to Make a GraphQL Query
  • 08:55
    Wed, Feb 12, 2020
    Doing Your First Mock
  • 10:37
    Tue, Feb 11, 2020
    A Rust Introduction to WebAssembly
  • 10:27
    Mon, Feb 10, 2020
    How to Use *ngIf else in Your Angular Applications
  • 08:36
    Fri, Feb 7, 2020
    Speed Up Your Development with Xamarin Hot Reload and Telerik UI
  • 04:14
    Fri, Feb 7, 2020
    Building a Fully-Featured Form Component in React: KendoReact Form Example
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.
  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page AutoEventWireup="true" Inherits="Telerik.Web.Examples.Rotator.Functionality.LiveXML.DefaultVB"CodeFile="DefaultVB.aspx.vb" Language="vb"  %>

<!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/<%# GetDayOfWeek(XPath("be:published", NamespaceManager).ToString()) %>.png');">
                        <div class="dateTime">
                            <div class="time">
                                <%# (GetTimeOnly(XPath("be:published", NamespaceManager).ToString())) %>
                            <div class="date">
                                <%# (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?