Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q1 2012 released 04/11/2012
select
  • Rate / Review
    • Give your Feedback:

      Rate this demo:


Rotator / Live XML

Data streamed live from http://blogs.telerik.com/Blogs.rss
  • 08:30
    Thu, May 17, 2012
    Why I Hate Unit Testing
  • 08:00
    Thu, May 17, 2012
    Upcoming Events : Speaking and Attending
  • 02:39
    Wed, May 16, 2012
    Quick Tips on Troubleshooting Your Web Pages – Element Inspector and Network Resources
  • 08:00
    Wed, May 16, 2012
    What makes a marketer of a toolset for building Windows Phone apps happy?
  • 12:24
    Tue, May 15, 2012
    XAMLflix Video Tutorial: RadCalculator for Silverlight and WPF
  • 10:06
    Tue, May 15, 2012
    Telerik OpenAccess ORM - Using SQL Server 2012 LocalDB
  • 09:30
    Mon, May 14, 2012
    As your startup grows, the founders have to grow with it
  • 02:22
    Mon, May 14, 2012
    Doing Your First Mock
  • 06:31
    Thu, May 10, 2012
    Designing a Windows 8 Metro style app starting from an existing Windows Phone app – Design Case Study Part 1
  • 10:46
    Wed, May 9, 2012
    GDI+ in a Windows 8 C# Metro Application – Experimenting for Fun
  • 08:30
    Wed, May 9, 2012
    Slides, Source Code and Video to the Diagramming Framework Webinar Now Available
  • 10:49
    Tue, May 8, 2012
    There’s a Tool for That: 13 Essential Tools for the Ninja Web Developer
  • 08:10
    Tue, May 8, 2012
    XAMLflix Introduces RadPropertyGrid
  • 08:00
    Tue, May 8, 2012
    Upcoming Events : Speaking and Attending
  • 01:02
    Mon, May 7, 2012
    Another Awesome VS11 Feature - WAI-ARIA Support
    

  • Live XML

    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 (e.g. "rss/channel/item" for RSS feeds).This way you could easily deliver public news to your site using your own formatting and styling.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page AutoEventWireup="true" Inherits="Telerik.Web.Examples.Rotator.Functionality.LiveXML.DefaultCS"
        CodeFile="DefaultCS.aspx.cs" Language="C#" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!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">
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
        <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="c#" ShowSkinChooser="false" />
        <telerik:RadScriptManager ID="ScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <a href='<%# XPath("pubDate").ToString()%>' style="cursor: pointer; text-decoration: none;
            color: Black; background-image: url('IMAGES/Monday.png');"></a>
        <div style="width: 100%;">
            <div class="backElement">
                <div class="titleText">
                    Data streamed live from <a href="http://blogs.telerik.com/Blogs.rss">http://blogs.telerik.com/Blogs.rss</a><br />
                </div>
                <div class="qsfClear">
                    <!-- -->
                </div>
                <telerik:RadRotator ID="RadRotator1" RotatorType="AutomaticAdvance" ScrollDirection="Up"
                    ScrollDuration="2000" runat="server" DataSourceID="XmlDataSource1" Width="493"
                    ItemWidth="493" Height="192" ItemHeight="64" FrameDuration="1" InitialItemIndex="-1"
                    CssClass="rotator">
                    <ItemTemplate>
                        <div class="itemTemplate" onclick="document.location='<%# XPath("link").ToString()%>'"
                            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>
            </div>
        </div>
        <asp:XmlDataSource ID="XmlDataSource1" XPath="rss/channel/item" runat="server" DataFile="http://blogs.telerik.com/Blogs.rss">
        </asp:XmlDataSource>
        <qsf:Footer runat="server" ID="Footer1" ShowCodeViewer="true" />
        </form>
    </body>
    </html>

Get more than expected!

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2012 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451