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:07
    Mon, Dec 23, 2024
    Understanding SOLID Principles
  • 03:42
    Fri, Dec 20, 2024
    Collaborative Testing’s Impact on Application Quality
  • 04:03
    Thu, Dec 19, 2024
    Tips to Find Your First Job in Tech
  • 11:10
    Thu, Dec 19, 2024
    Get Started Integrating AI in Your ASP.NET Core Applications
  • 04:05
    Wed, Dec 18, 2024
    Managing Content Collections with Astro and KendoReact Typography
  • 10:52
    Wed, Dec 18, 2024
    Simplifying User Choices with .NET MAUI ToggleButton
  • 04:13
    Tue, Dec 17, 2024
    Node.js Features You Didn’t Know About: Part 2
  • 10:36
    Tue, Dec 17, 2024
    Blazor Basics: Optimizing the Performance of Blazor WebAssembly Applications
  • 03:50
    Mon, Dec 16, 2024
    Sands of MAUI: Issue #169
  • 09:47
    Mon, Dec 16, 2024
    Angular Basics: Signals
  • 04:00
    Fri, Dec 13, 2024
    From Efficiency to Engagement: The Self-Service Revolution in a Digitally Transformed World
  • 03:11
    Thu, Dec 12, 2024
    Getting Started with API Gateways in ASP.NET Core
  • 09:46
    Thu, Dec 12, 2024
    GitHub Models Explained
  • 02:00
    Wed, Dec 11, 2024
    Local GenAI Processing: Implementing WebLLM with Blazor WebAssembly
  • 10:53
    Wed, Dec 11, 2024
    Customizing the KendoReact Data Grid Styling and Theming Options
    

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