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

Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 11:10
    Wed, Apr 14, 2021
    How to Automate PDF Testing? A Truly Straightforward Approach
  • 06:03
    Tue, Apr 13, 2021
    New Office 2019 Light Theme to the WinForms Suite
  • 03:40
    Tue, Apr 13, 2021
    Angular Basics: Setting up Child Routes in Angular 12
  • 11:02
    Tue, Apr 13, 2021
    Instant Feedback Is Here: Introducing Hot Reload in .NET 6
  • 07:38
    Mon, Apr 12, 2021
    Best Practices in Software Development: An Inside Look at What Guides Progress—Part 2
  • 03:43
    Mon, Apr 12, 2021
    Sands of MAUI: Issue #4
  • 11:29
    Mon, Apr 12, 2021
    The Main Challenges a React Form Library Should Solve
  • 01:47
    Fri, Apr 9, 2021
    The Value of Programmer Lore and Standardization
  • 11:03
    Fri, Apr 9, 2021
    Mind Your Own Busyness with Telerik BusyIndicator for WinUI
  • 02:36
    Thu, Apr 8, 2021
    Generating PDF in React: As Easy As 1-2-3
  • 11:25
    Thu, Apr 8, 2021
    AWS Testing—Optimizing Test Performance and Cutting Costs with Headless Browser Execution
  • 05:00
    Wed, Apr 7, 2021
    Join the Worthy Web Hackathon and Make the World a Better Place, One Web App at a Time
  • 12:37
    Wed, Apr 7, 2021
    Three Things Developers Can Do to Make the World a Healthier Place
  • 11:45
    Wed, Apr 7, 2021
    7 Things You Can Do to Create Eco-friendly Websites and Apps
  • 12:38
    Tue, Apr 6, 2021
    A Picture is Worth a Thousand Words: Meet the WinForms PictureBox
    

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