R2 2018 Release is here – now with modern UI for chatbots and more! See what’s new!

Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 06:48
    Thu, May 24, 2018
    Transaction or Knowledge Chatbot? Moving Beyond the Siri Syndrome
  • 03:24
    Thu, May 24, 2018
    Using Coded Steps in Progress Test Studio for APIs
  • 08:19
    Wed, May 23, 2018
    ASP.NET Core 2.1 Goes RC: An Interview with Daniel Roth
  • 08:55
    Tue, May 22, 2018
    Spotlight on: Toolbars
  • 07:32
    Mon, May 21, 2018
    All Things React
  • 08:14
    Fri, May 18, 2018
    DayView Support, ListView Improvements in Telerik UI for UWP [New Release]
  • 02:54
    Fri, May 18, 2018
    Conversational UI, Animations, More Demos in Telerik UI for WPF [New Release]
  • 07:43
    Thu, May 17, 2018
    More Supported C# Features in JustMock with R2 2018 [New Release]
  • 07:05
    Thu, May 17, 2018
    Conversational UI, Cloud Integration in Telerik UI for WinForms [New Release]
  • 04:43
    Thu, May 17, 2018
    Search, Digital Signing in Telerik Reporting and Report Server [New Release]
  • 04:08
    Thu, May 17, 2018
    Build LOB and Cognitive Apps with Our New Xamarin Components [New Release]
  • 07:31
    Wed, May 16, 2018
    Chatbots for Web Forms with Telerik UI for ASP.NET AJAX [New Release]
  • 07:08
    Wed, May 16, 2018
    Kendo UI: Conversational UI, Angular, React and Vue Components [New Release]
  • 05:36
    Wed, May 16, 2018
    Ready for the Future with Telerik UI for ASP.NET MVC and Core [New Release]
  • 04:27
    Wed, May 16, 2018
    Telerik & Kendo UI R2 2018: .NET, JavaScript, CHATBOTS! [New Release]
    
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<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>

Find Assistance

Help Us Improve

Was this example helpful?