New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 10:57
    Wed, Feb 5, 2025
    Case Study: Creating Tools for Telerik Scheduler for Blazor
  • 07:17
    Tue, Feb 4, 2025
    Generating Barcodes with KendoReact
  • 03:19
    Tue, Feb 4, 2025
    What Is DeepSeek? Dive in Using DeepSeek, .NET Aspire and Blazor
  • 05:13
    Mon, Feb 3, 2025
    Sands of MAUI: Issue #173
  • 11:21
    Mon, Feb 3, 2025
    Build a ChatLens with Kendo UI, Gemini and Angular 19
  • 03:10
    Thu, Jan 30, 2025
    5 Stress-Busting Techniques for 2025
  • 05:57
    Wed, Jan 29, 2025
    Why Obey Programming Rules and New Coding Trends
  • 03:47
    Wed, Jan 29, 2025
    Native Platform Library Embedding in .NET MAUI
  • 03:54
    Tue, Jan 28, 2025
    Managing Schedules with the Blazor Scheduler 4: Specialized Topics
  • 11:13
    Tue, Jan 28, 2025
    Creating QR Codes with KendoReact
  • 05:04
    Mon, Jan 27, 2025
    Sands of MAUI: Issue #172
  • 10:56
    Mon, Jan 27, 2025
    Hydration and Incremental Hydration in Angular
  • 02:50
    Fri, Jan 24, 2025
    Building Runtime Agnostic Apps/Packages with JavaScript
  • 03:22
    Thu, Jan 23, 2025
    Using Your Organization’s Theme with Your Telerik and Kendo UI Components
  • 10:13
    Thu, Jan 23, 2025
    Deploying ASP.NET Core Applications with Docker—Part 2
    

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>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <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="http://feeds.feedburner.com/Telerik">http://feeds.feedburner.com/Telerik</a><br />
            </div>
            <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"
                CssClass="rotator">
                <ItemTemplate>
                    <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>
                            <div class="date">
                                <%# (this.GetDateOnly(XPath("be:published", NamespaceManager).ToString()))%>
                            </div>
                        </div>
                        <div class="title">
                            <span>
                                <%# System.Web.HttpUtility.HtmlEncode(XPath("be:title", NamespaceManager).ToString())%>
                            </span>
                        </div>
                    </div>
                </ItemTemplate>
            </telerik:RadRotator>
            <asp:Label ID="lblMessage" Visible="false" CssClass="message" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance