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:08
    Tue, May 21, 2024
    The React useState Hook
  • 08:05
    Tue, May 21, 2024
    Telerik Report Design with Blazor WebAssembly and REST API
  • 03:48
    Mon, May 20, 2024
    Sands of MAUI: Issue #145
  • 08:14
    Mon, May 20, 2024
    Why Move to Input Signals—Bye, @Input()
  • 03:11
    Fri, May 17, 2024
    How to Implement Function Overloading in TypeScript
  • 08:10
    Fri, May 17, 2024
    The Guide to Modern Redux—Say Hello to Redux Toolkit and Redux Toolkit Query
  • 02:43
    Thu, May 16, 2024
    ASP.NET Core Basics: Authentication and Authorization with JWT
  • 07:34
    Thu, May 16, 2024
    Vue Basics: Intro to Vue.js Computed Properties
  • 02:56
    Wed, May 15, 2024
    Troubleshooting 6 Known Issues in .NET MAUI
  • 08:03
    Wed, May 15, 2024
    Mobile App Testing—Best Practices & Testing Tips
  • 03:23
    Tue, May 14, 2024
    Create a WebAssembly App with Blazor + Google Authorization
  • 08:51
    Tue, May 14, 2024
    Top 5 VS Code Extensions for React Developers
  • 03:30
    Mon, May 13, 2024
    Sands of MAUI: Issue #144
  • 08:15
    Mon, May 13, 2024
    Creating Dynamic and Flexible Components with Angular Content Projection
  • 03:13
    Fri, May 10, 2024
    What the Self-Checkout Backlash Teaches Us About Tech & UX
    

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