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 Q2 2011 released 07/12/2011
select

Rotator / Multiple Scroller

  • MSFT
    37.47
    -1.23
      
  • AAA
    19.46
    0.41
      
  • WMRT
    13.15
    0.15
      
  • BIX
    1.80
    -0.18
      
  • CLB
    31.24
    -0.16
      
  • LLB
    23.13
    0.34
      
    
  • ZAP
    42.27
    -0.32
      
  • PFZ
    19.16
    1.06
      
  • MRK
    37.15
    0.55
      
  • TIN
    2.80
    -0.11
      
  • HOP
    2.54
    -0.08
      
  • BIP
    12.93
    0.60
      
    

  • Multiple Scroller

    Each instance of RadRotator has its own unique configuration. You can have many rotators with different configurations on the same page.

Source Code

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

    <%@ 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 rel="stylesheet" type="text/css" href="Styles.css" />
        <style type="text/css">
            .Rotator
            {
                background-color: black;
                cursor: default;
            }
            .itemTemplate
            {
                margin: 5px;
                width:140px;
                height:24px;
            }
            .Symbol
            {
                font-family: Verdana, Arial;
                font-weight: bold;
                font-size: 9pt;
                color: #3E7DBC;
                cursor: default;
                float: left;
            }
            .Quote
            {
                font-family: Verdana, Arial;
                font-size: 11px;
                color: #64962D;
                float: left;
                margin-left: 5px;
            }
            .Change
            {
                font-family: Verdana, Arial;
                font-size: 11px;
                color: gray;
                float: left;
                margin-left: 5px;
            }
            .Link
            {
                font-family: Verdana, Arial;
                font-size: 10px;
                color: #3E7DBC;
            }
        </style>
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" />
        <telerik:RadScriptManager ID="ScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <div style="width: 90%">
            <div class="top">
                <img src="Images/top.gif" width="452" height="35" alt="" /></div>
            <div class="marqueeTopBg">
                <div class="marqueeTop_Text">
                    <telerik:RadRotator ScrollDirection="left" DataSourceID="xmlDataSource1" FrameDuration="1"
                        Width="435" ItemWidth="145"
                        Height="24" ItemHeight="24" ScrollDuration="2000" ID="Rotator1" runat="server">
                        <ItemTemplate>
                            <div class="itemTemplate">
                                <div class="Symbol">
                                    <%# XPath("Company") %>
                                </div>
                                <div class="Quote" style="cursor: default; float: left">
                                    <%# XPath("Price") %>
                                </div>
                                <div class="Change">
                                    <%# XPath("Difference") %>
                                </div>
                                <div style="margin-left: 5px; float: left;">
                                    <img src='<%# XPath("Image") %>' style="border: 0px" alt="" />
                                </div>
                                <div class="Quote" style="float: left;">
                                    &nbsp;&nbsp;
                                </div>
                            </div>
                        </ItemTemplate>
                    </telerik:RadRotator>
                </div>
            </div>
            <div class="marqueeBottomBg">
                <div class="marqueeBottom_Text">
                    <telerik:RadRotator ScrollDirection="left" DataSourceID="xmlDataSource2" Width="435" ItemWidth="145"
                        Height="24" ItemHeight="24" ScrollDuration="3000" FrameDuration="1" ID="Rotator2" runat="server">
                        <ItemTemplate>
                            <div class="itemTemplate">
                                <div class="Symbol">
                                    <%# XPath("Company") %>
                                </div>
                                <div class="Quote" style="cursor: default; float: left">
                                    <%# XPath("Price") %>
                                </div>
                                <div class="Change">
                                    <%# XPath("Difference") %>
                                </div>
                                <div style="margin-left: 5px; float: left;">
                                    <img src='<%# XPath("Image") %>' style="border: 0px" alt="" />
                                </div>
                                <div class="Quote" style="float: left;">
                                    &nbsp;&nbsp;
                                </div>
                            </div>
                        </ItemTemplate>
                    </telerik:RadRotator>
                </div>
            </div>
            <div class="bottom">
                <img src="Images/bottom.gif" width="452" height="108" alt="" /></div>
        </div>
        <asp:XmlDataSource ID="xmlDataSource1" runat="Server" DataFile="upperMarquee.xml">
        </asp:XmlDataSource>
        <asp:XmlDataSource ID="xmlDataSource2" runat="Server" DataFile="lowerMarquee.xml">
        </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-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451