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 / RadTicker and TickerLine






  • RadTicker with RadTickerItem

    This example demonstrates how you can use RadTicker by itself. You can feed different lines to the control's <items> collection by using the <RadTickerItem> tag. RadTicker is also able to read literal content that is inside the <RadTickerItem> tags. This way you can construct your tickers easily without having to worry about missing to use the template tags. You can use them only when you need them.

Source Code

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

    <%@ 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"/>
    </head>
    <body class="BODY">
        <form id="form1" runat="server">
            <qsf:header id="Header1" runat="server" NavigationLanguage="VB" />
        <telerik:RadScriptManager ID="ScriptManager1" runat="server">
        </telerik:RadScriptManager>
            <div class="top"><img src="Images/topLeft.gif" height="14" width="20" alt="" /><img src="Images/topCenter.gif" height="14" width="524" alt=""/><img src="Images/topRight.gif" height="14" width="20" alt="" /></div>
            <div class="middleLeft"><img src="Images/middleLeft.gif" height="27" width="20" alt="" /></div>
            <div class="middleCenter">
                <div class="tickerLines">
                    <telerik:RadTicker AutoStart="true" runat="server" ID="Radticker1" loop="true">
                     <items>                    
                         <telerik:RadTickerItem>TURKEY: Stocks go up after a surge in investor confidence.</telerik:RadTickerItem>
                         <telerik:RadTickerItem>ROMANIA: Privatization drives the stock market this week.</telerik:RadTickerItem>
                         <telerik:RadTickerItem>BULGARIA: Government plans for a new wave of privatization.</telerik:RadTickerItem>
                        </items>
                    </telerik:RadTicker>
                </div>
            </div>
            <div class="middleRight"><img src="Images/middleRight.gif" height="27" width="20" alt="" /></div>
            <img src="Images/bottom.gif" width="564" height="16" alt="" />
            <br/>
            <br/>
            <div class="top"><img src="Images/topLeft.gif" height="14" width="20" alt="" /><img src="Images/topCenter.gif" height="14" width="524" alt=""/><img src="Images/topRight.gif" height="14" width="20" alt="" /></div>
            <div class="middleLeft"><img src="Images/middleLeft.gif" height="27" width="20" alt="" /></div>
            <div class="middleCenter">
                <div class="tickerLines">
                    <telerik:RadTicker AutoStart="true" runat="server" ID="Radticker2" loop="true">
                     <items>
                     <telerik:RadTickerItem>Turquie: Les actions remontent après une montée subite dans la confiances des investisseurs.</telerik:RadTickerItem>
                         <telerik:RadTickerItem>Roumanie: La privatisation conduisent le marché boursier cette semaine.</telerik:RadTickerItem>
                         <telerik:RadTickerItem>Bulgarie: Le gouvernement planifie une nouvelle vague de privatisations.</telerik:RadTickerItem>
                     </items>                        
                    </telerik:RadTicker>
                </div>
            </div>
            <div class="middleRight"><img src="Images/middleRight.gif" height="27" width="20" alt=""/></div>
            <img src="Images/bottom.gif" width="564" height="16" alt="" />
            <br/>
            <br/>
            <div class="top"><img src="Images/topLeft.gif" height="14" width="20" alt="" /><img src="Images/topCenter.gif" height="14" width="524" alt="" /><img src="Images/topRight.gif" height="14" width="20" alt="" /></div>
            <div class="middleLeft"><img src="Images/middleLeft.gif" height="27" width="20" alt="" /></div>
            <div class="middleCenter">
                <div class="tickerLines">
                    <telerik:RadTicker AutoStart="true" runat="server" ID="Radticker3" loop="true">
                     <items>
                     <telerik:RadTickerItem>TÜRKEI: Aktien steigen nach einer Welle des Investorenvertrauens</telerik:RadTickerItem>
                         <telerik:RadTickerItem>RUMÄNIEN: Privatisierung bestimmt diese Woche den Aktienmarkt</telerik:RadTickerItem>
                         <telerik:RadTickerItem>BULGARIEN: Regierung plant eine neue Welle der Privatisierung</telerik:RadTickerItem>
                     </items>                        
                    </telerik:RadTicker>
                </div>
            </div>
            <div class="middleRight"><img src="Images/middleRight.gif" height="27" width="20" alt="" /></div>
            <img src="Images/bottom.gif" width="564" height="16" alt="" />        
            
            <qsf:footer runat="server" id="Footer1" />
        </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