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

Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 02:37
    Thu, Mar 30, 2023
    Embedded Reporting (Part 1): The Complete Solution for User-Created Reports
  • 07:33
    Thu, Mar 30, 2023
    How to Build a Custom Signature Dialog in AJAX RadEditor: A Step-by-Step Guide
  • 01:44
    Wed, Mar 29, 2023
    Rules Grouping and More in the New Fiddler Everywhere 4.2!
  • 07:13
    Wed, Mar 29, 2023
    REST APIs: What They Are and All You Need to Know
  • 03:01
    Tue, Mar 28, 2023
    Telerik Blazor UI In Native Apps
  • 02:21
    Tue, Mar 28, 2023
    Part 1: Should We Migrate from Xamarin.Forms to .NET MAUI? When?
  • 07:13
    Tue, Mar 28, 2023
    Let’s Build a React Admin Dashboard Sample App—Part 1
  • 02:06
    Mon, Mar 27, 2023
    Sands of MAUI: Issue #96
  • 07:41
    Mon, Mar 27, 2023
    Angular Visualizations: Create Data Visualization with Kendo UI Charts
  • 02:47
    Fri, Mar 24, 2023
    How to Get Listened to
  • 07:36
    Fri, Mar 24, 2023
    5 Features & Trends That Shouldn’t Appear on Websites in 2023
  • 02:12
    Thu, Mar 23, 2023
    Techniques for Testing Mobile Apps vs. Web Apps
  • 07:11
    Thu, Mar 23, 2023
    Modern Cross-Platform ASP.NET Core Controls
  • 02:08
    Wed, Mar 22, 2023
    How to View and Create a Schedule with Ease—Telerik Scheduler for Blazor
  • 07:41
    Wed, Mar 22, 2023
    What You Need To Know About the Most Common Website Error Codes
    

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