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

Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 03:43
    Thu, Feb 22, 2024
    A Beginner’s Guide to IndexedDB
  • 08:36
    Thu, Feb 22, 2024
    Tips for Learning When You’re Busy Software Testing
  • 03:55
    Wed, Feb 21, 2024
    Using GitHub Copilot and Telerik UI for ASP.NET Core for Enhanced Development
  • 09:25
    Wed, Feb 21, 2024
    Vue Animation: Customizing and Animating Your Vue App with GSAP
  • 04:18
    Tue, Feb 20, 2024
    Blazor’s Enhanced Navigation Fully Explained
  • 08:47
    Tue, Feb 20, 2024
    The Current State of React Server Components: A Guide for the Perplexed
  • 04:11
    Mon, Feb 19, 2024
    Beyond the Basics: Exploring 4 Behaviors from the .NET MAUI Community Toolkit
  • 09:14
    Mon, Feb 19, 2024
    The Best of Both Angular Worlds: Standalone & Modules Combined
  • 09:14
    Mon, Feb 19, 2024
    The Best of Both Angular Worlds: Standalone & Modules Combined
  • 04:14
    Fri, Feb 16, 2024
    Server-Side Routing vs. Client-Side Routing
  • 09:22
    Fri, Feb 16, 2024
    How to Streamline Lead Generation with Your Website
  • 03:21
    Thu, Feb 15, 2024
    Top Validation Libraries to Use for Your Vue Project
  • 08:40
    Thu, Feb 15, 2024
    Blazor Basics: HTML Forms and Capturing User Data
  • 07:36
    Wed, Feb 14, 2024
    Telerik RichTextEditor for .NET MAUI—Display Any HTML Text in Your Cross-Platform App
  • 03:00
    Wed, Feb 14, 2024
    Welcoming Progress Champions 2024
    

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