We just shipped Q1’15. Sign up for the Release Webinar to see the new bits in action.

Rotator - Live XML

Data streamed live from http://feeds.feedburner.com/Telerik
  • 06:02
    Fri, Feb 27, 2015
    Prototype Created Two Beautiful iOS and Android Apps for Tecom Investments in Only 4 Weeks with Telerik Platform
  • 10:46
    Fri, Feb 27, 2015
    ListView and SideDrawer in Q1 2015 of UI for Android
  • 09:00
    Thu, Feb 26, 2015
    Colossal Q1 2015 release for Telerik UI for WinForms
  • 04:07
    Thu, Feb 26, 2015
    Telerik UI for WPF and Telerik UI for Silverlight Q1 2015 Release is Now Official
  • 11:00
    Wed, Feb 25, 2015
    3 Scenarios You'll Build Faster and More Easily with the Q1 2015 Release of Telerik UI for ASP.NET AJAX
  • 09:31
    Wed, Feb 25, 2015
    Introducing Dynamic Fonts with Office2013 and VisualStudio2013 themes in Telerik UI for WPF and Silverlight
  • 06:58
    Wed, Feb 25, 2015
    How to Install Windows 10 on Your Phone
  • 04:00
    Wed, Feb 25, 2015
    Kendo UI Q1 2015 Beta Available NOW
  • 04:00
    Tue, Feb 24, 2015
    Master the Essentials of UI Test Automation: Chapter Two
  • 01:00
    Fri, Feb 20, 2015
    Thoughts on the Future of .NET
    
Isolate this demo as a stand-alone application

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.
<%@ 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 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("pubDate").ToString()) %>.png');">
                        <div class="dateTime">
                            <div class="time">
                                <%# (this.GetTimeOnly(XPath("pubDate").ToString())) %>
                            </div>
                            <div class="date">
                                <%# (this.GetDateOnly(XPath("pubDate").ToString()))%>
                            </div>
                        </div>
                        <div class="title">
                            <span>
                                <%# System.Web.HttpUtility.HtmlEncode(XPath("title").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?