Rotator - Live XML

Data streamed live from
  • 04:26
    Fri, Dec 19, 2014
    Get Ready for 64-Bit with Telerik AppBuilder
  • 01:00
    Thu, Dec 18, 2014
    Weekly Dose of Telerik Support Resources 12/15/2014
  • 08:00
    Wed, Dec 17, 2014
    Telerik Platform Webinar Recap and Prize Winners
  • 02:30
    Wed, Dec 17, 2014
    Announcing the Telerik Kendo UI Q1 2015 Roadmap
  • 06:30
    Tue, Dec 16, 2014
    New, Flexible Pricing Model and Calendar for Telerik UI for Xamarin
  • 01:30
    Mon, Dec 15, 2014
    Getting Started with Telerik Reporting and ASP.NET 5
  • 01:00
    Fri, Dec 12, 2014
    Weekly Dose of Telerik Support Resources 12/08/2014
  • 07:00
    Thu, Dec 11, 2014
    Test Studio R4 2014: The Most Intuitive and Robust Test Recorder You’ve Tried, By Far
  • 01:00
    Thu, Dec 11, 2014
    30 Days of TDD: The Complete Journey
  • 07:00
    Wed, Dec 10, 2014
    Building a Mobile Cross-Platform App from a Shared C# Code Base with UI for Xamarin
Isolate this demo as a stand-alone application

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.
<%@ 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 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("pubDate").ToString()) %>.png');">
                        <div class="dateTime">
                            <div class="time">
                                <%# (this.GetTimeOnly(XPath("pubDate").ToString())) %>
                            <div class="date">
                                <%# (this.GetDateOnly(XPath("pubDate").ToString()))%>
                        <div class="title">
                                <%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString())%>
            <asp:Label ID="lblMessage" Visible="false" CssClass="message" runat="server" />

Find Assistance

Help Us Improve

Was this example helpful?