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:57
    Wed, Sep 18, 2024
    Tips for Improving API Performance in ASP.NET Core
  • 08:42
    Wed, Sep 18, 2024
    State Management in Angular Applications Using NgRx Signals Store
  • 03:16
    Tue, Sep 17, 2024
    Maximizing Your Return from Reporting, Part 1: Lowering Costs
  • 09:23
    Tue, Sep 17, 2024
    Vue Basics: Deep Dive into Nuxt DevTools
  • 02:12
    Mon, Sep 16, 2024
    Sands of MAUI: Issue #159
  • 11:13
    Mon, Sep 16, 2024
    Typographic Hierarchy Tips for Creating More Visually Appealing and Readable Text
  • 08:46
    Mon, Sep 16, 2024
    Drag and Drop with the KendoReact Sortable Component
  • 03:31
    Fri, Sep 13, 2024
    The Purpose and Promise of an ACoE
  • 07:33
    Fri, Sep 13, 2024
    JSX vs. Template Syntax in Frameworks
  • 02:40
    Thu, Sep 12, 2024
    Know the Differences Between Web Services and APIs
  • 08:41
    Thu, Sep 12, 2024
    Mastering .NET MAUI Shell—Part 1
  • 01:13
    Wed, Sep 11, 2024
    UX Crash Course: Wireframing
  • 09:06
    Wed, Sep 11, 2024
    ASP.NET Core Basics: Simplifying API Integration with Refit
  • 03:03
    Tue, Sep 10, 2024
    Generating Recurring Events with Telerik UI for Blazor Scheduler
  • 07:50
    Tue, Sep 10, 2024
    Vue Basics: How to Use Vue Router
    

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