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

Button / Slide Show

  • Kawasaki Ninja 250R
    Kawasaki Ninja 250R
    open quotation Nimble handling, an exceptional personality and a low price tag highlight Kawasaki's Ninja® 250R sportbike, while its UNI-TRAK® rear suspension, petal disc brakes and gas-sipping twin-cylinder engine contribute to its class leading performance and value. Its no surprise the Ninja 250R is such a strong seller.
  • Kawasaki Ninja 500R
    Kawasaki Ninja 500R
    open quotation Practicality is the Kawasaki's Ninja® 500Rs biggest asset as it strikes an ideal balance between function, form and budget that's rarely achieved in the sport bike world. A sensible sportbike, the 500R is ready to rip, yet remains friendly enough for beginners to feel confident in its manners.
  • Kawasaki Ninja 650R
    Kawasaki Ninja 650R
    open quotation The Kawasaki Ninja® 650R already epitomized the ideal marriage of sportbike performance and relaxed comfort. For 2009 Kawasaki improved on this combination and gave this popular model several new upgrades, from improved suspension to updated Ninja super sport styling. The end result of over 40 updates and refinements, the new sportier Ninja 650R delivers serious performance fun and maximum transportation practicality.
  • Kawasaki ER-6n
    Kawasaki ER-6n
    open quotation Riders seeking the performance and practicality of Kawasaki's popular Ninja® 650R sportbike, but desiring something with a tougher, more muscular image need look no farther than the new 2009 Kawasaki ER-6n. Sharing mechanicals with the Ninja 650R, but with street-smart styling that reveals its trellis frame and compact parallel-twin engine, the ER-6n offers a unique blend of stunning good looks combined with nimble handling and a comfortable riding position. The ER-6n has all the performance of its Ninja sibling, in a new and distinctive guise.
  • Kawasaki Z1000
    Kawasaki Z1000
    open quotation Kawasaki upped the ante in the naked bike arena with the entrance of the Z1000. Beyond its muscular torque delivery and radical styling, the Z1000 dishes out a visceral riding experience. This purpose-built Kawasaki is equally at home in the garages of both practical motorcyclists simply seeking a smile-producing weekend ride and owners desiring a bike that doesn't fit the norm.
    
Paused
Last action: Pause

  • Slide Show

    This example demonstrates how to use different types of RadButtons and their client-side API, to control various actions on the WebForm. The Play/Pause button is actually a check box, and scrolls the slides when RadButton.Checked="true". The other two buttons, Next and Previous, pause the slide show by unchecking the Play/Pause check box, and show the next or the previous slide. Note that, calling the set_checked(true/false) method fires the checkedChanged client-side event. This comes handy in scenarios when the user wants to programmatically change the checked state of a given RadButton, but still execute his/her logic as if the state was changed by clicking the control.


Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" AutoEventWireup="true" %>

    <%@ 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 ID="Headtag1" runat="server" />
        <style type="text/css">
            .slides
            {
                width: 690px;
                height: 381px;
                margin: 0 0 0 5px;
                background: transparent url('Images/Sprite.gif') no-repeat;
                background-position: 0 -487px;
                -moz-user-select: none;
                outline: none;
                cursor: default;
                font-family: "Segoe UI" , "Trebuchet MS" , Arial, Verdana;
            }
            
            /* single slide settings */
            .slide
            {
                width: 690px;
                height: 381px; /* We will show the slides with javascript */
            }
            
            .slide h6
            {
                padding: 0;
                margin: 0;
            }
            
            .slide h6
            {
                font-size: 40px;
                font-weight: normal;
                color: white;
                padding: 40px 0 0 44px;
            }
            
            /* Slides content */
            .slide .slideContent
            {
                height: 200px;
                width: 690px;
                clear: both;
                margin-top: 65px;
                margin-left: 10px;
            }
            
            .slide .Motor_Description
            {
                height: 164px;
                width: 400px;
                padding-top: 25px;
                padding-right: 20px;
                float: right;
            }
            
            .rbToggleCheckbox, .rbToggleCheckboxChecked
            {
                display: none !important;
            }
            .RadButton:hover
            {
                cursor: pointer;
            }
            .slideshow
            {
                position: relative;
                width: 700px;
                height: 415px;
                background-color: #313131;
                padding: 8px;
                z-index: 1000;
                font-family: "Segoe UI" ,Arial,Helvetica,sans-serif;
                background-image: none;
                margin: 0 auto;
            }
            .sshow, .crtl, .controls, .ctrlBtns
            {
                position: absolute;
            }
            .shimg
            {
                width: 700px;
                height: 381px;
                z-index: 1;
                overflow: hidden;
            }
            .controls
            {
                width: 715px;
                height: 51px;
                background-image: url(img/shcontrols.png);
                z-index: 10;
                bottom: 0;
                left: 0;
            }
            
            .sshow, .crtl
            {
                color: #fff;
                font-weight: bold;
                font-size: 17px;
                bottom: 15px;
            }
            
            .sshow
            {
                left: 24px;
            }
            .crtl
            {
                right: 24px;
            }
            
            .ctrlBtns
            {
                width: 165px;
                height: 16px;
                left: 273px;
                bottom: 8px;
            }
            *html .ctrlBtns
            {
                bottom: 16px;
            }
            * + html .ctrlBtns
            {
                bottom: 20px;
            }
            .ctrlBtns li
            {
                float: left;
                list-style: none;
            }
            .ctrlBtns li.playSpace
            {
                padding: 0 15px;
            }
            
            /*IE6 Fixes*/
            *html .controls
            {
                filter: alpha(opacity=80);
            }
            *html .raw
            {
                background-image: url(img/shRAW.gif) !important;
            }
            *html .raw:hover
            {
                background-image: url(img/shRAWHov.gif) !important;
            }
            *html .ff
            {
                background-image: url(img/shFF.gif) !important;
            }
            *html .ff:hover
            {
                background-image: url(img/shFFHov.gif) !important;
            }
            *html .play
            {
                background-image: url(img/shPlay.gif) !important;
            }
            *html .play:hover
            {
                background-image: url(img/shPlayHov.gif) !important;
            }
            *html .pause
            {
                background-image: url(img/shPause.gif) !important;
            }
            *html .pause:hover
            {
                background-image: url(img/shPauseHov.gif) !important;
            }
            *html .play, *html .pause
            {
                background-repeat: no-repeat !important;
            }
        </style>
    </head>
    <body class="BODY">
        <form id="Form2" method="post" runat="server">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" ShowSkinChooser="false" />
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <script type="text/javascript">
            //<![CDATA[
            function GetRotator()
            {
                return $find("<%= rotatorSlideShow.ClientID %>");
            }

            function OnClientCheckedChanged(button, args)
            {
                var rotator = GetRotator();
                var spanLastAction = $get("spanLastAction");
                var divState = $get("divState");
                if (args.get_checked())
                {
                    startRotator(rotator);
                    spanLastAction.innerHTML = "Play";
                    divState.innerHTML = "Playing...";
                    divState.style.color = "#0f0";
                }
                else
                {
                    stopRotator(rotator);
                    spanLastAction.innerHTML = "Pause";
                    divState.innerHTML = "Paused";
                    divState.style.color = "#f00";
                }
            }

            function showNextItem(button, args)
            {
                $find("<%= PlayPause.ClientID %>").set_checked(false);

                var rotator = GetRotator();
                var direction = Telerik.Web.UI.RotatorScrollDirection.Left;
                var spanLastAction = $get("spanLastAction");
                spanLastAction.innerHTML = "Previous";
                if (args.get_commandName() == "Right")
                {
                    direction = Telerik.Web.UI.RotatorScrollDirection.Right;
                    spanLastAction.innerHTML = "Next";
                }
                rotator.showNext(direction);
            }

            function startRotator(rotator)
            {
                var direction = Telerik.Web.UI.RotatorScrollDirection.Right;
                if (!rotator.autoIntervalID)
                {
                    rotator.autoIntervalID = window.setInterval(function ()
                    {
                        rotator.showNext(direction);
                    }, rotator.get_frameDuration());
                }
            }

            function stopRotator(rotator)
            {
                if (rotator.autoIntervalID)
                {
                    window.clearInterval(rotator.autoIntervalID);
                    rotator.autoIntervalID = null;
                }
            }
            //]]>
        </script>
        <div class="slideshow">
            <div class="shimg">
                <div class="slides">
                    <!-- slides -->
                    <telerik:RadRotator ID="rotatorSlideShow" runat="server" Width="690px" Height="381px"
                        ItemHeight="381px" ItemWidth="690px" ScrollDirection="Right" RotatorType="FromCode"
                        PauseOnMouseOver="false">
                        <Items>
                            <telerik:RadRotatorItem CssClass="slide">
                                <ItemTemplate>
                                    <div id="slide_00" class="slide">
                                        <h6>
                                            Kawasaki Ninja 250R</h6>
                                        <div class="slideContent">
                                            <img src="Images/ninja-250-r.jpg" alt="Kawasaki Ninja 250R" title="Kawasaki Ninja 250R"
                                                width="251px" height="164px" style="float: left;" />
                                            <div class="Motor_Description">
                                                <img alt="open quotation" src="Images/quotmark-left.gif" />
                                                Nimble handling, an exceptional personality and a low price tag highlight Kawasaki's
                                                Ninja&reg; 250R sportbike, while its UNI-TRAK&reg; rear suspension, petal disc brakes
                                                and gas-sipping twin-cylinder engine contribute to its class leading performance
                                                and value. Its no surprise the Ninja 250R is such a strong seller.</div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotatorItem>
                            <telerik:RadRotatorItem CssClass="slide">
                                <ItemTemplate>
                                    <div id="slide_01" class="slide">
                                        <h6>
                                            Kawasaki Ninja 500R</h6>
                                        <div class="slideContent">
                                            <img src="Images/ninja-500-r.jpg" alt="Kawasaki Ninja 500R" title="Kawasaki Ninja 500R"
                                                width="251px" height="164px" style="float: left;" />
                                            <div class="Motor_Description">
                                                <img alt="open quotation" src="Images/quotmark-left.gif" />
                                                Practicality is the Kawasaki's Ninja&reg; 500Rs biggest asset as it strikes an ideal
                                                balance between function, form and budget that's rarely achieved in the sport bike
                                                world. A sensible sportbike, the 500R is ready to rip, yet remains friendly enough
                                                for beginners to feel confident in its manners.</div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotatorItem>
                            <telerik:RadRotatorItem CssClass="slide">
                                <ItemTemplate>
                                    <div id="slide_02" class="slide">
                                        <h6>
                                            Kawasaki Ninja 650R</h6>
                                        <div class="slideContent">
                                            <img src="Images/ninja-650-r.jpg" alt="Kawasaki Ninja 650R" title="Kawasaki Ninja 650R"
                                                width="251px" height="164px" style="float: left;" />
                                            <div class="Motor_Description">
                                                <img alt="open quotation" src="Images/quotmark-left.gif" />
                                                The Kawasaki Ninja&reg; 650R already epitomized the ideal marriage of sportbike
                                                performance and relaxed comfort. For 2009 Kawasaki improved on this combination
                                                and gave this popular model several new upgrades, from improved suspension to updated
                                                Ninja super sport styling. The end result of over 40 updates and refinements, the
                                                new sportier Ninja 650R delivers serious performance fun and maximum transportation
                                                practicality.
                                            </div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotatorItem>
                            <telerik:RadRotatorItem CssClass="slide">
                                <ItemTemplate>
                                    <div id="slide_03" class="slide">
                                        <h6>
                                            Kawasaki ER-6n</h6>
                                        <div class="slideContent">
                                            <img src="Images/er6n.jpg" alt="Kawasaki ER-6n" title="Kawasaki ER-6n" width="251px"
                                                height="164px" style="float: left;" />
                                            <div class="Motor_Description">
                                                <img alt="open quotation" src="Images/quotmark-left.gif" />
                                                Riders seeking the performance and practicality of Kawasaki's popular Ninja&reg;
                                                650R sportbike, but desiring something with a tougher, more muscular image need
                                                look no farther than the new 2009 Kawasaki ER-6n. Sharing mechanicals with the Ninja
                                                650R, but with street-smart styling that reveals its trellis frame and compact parallel-twin
                                                engine, the ER-6n offers a unique blend of stunning good looks combined with nimble
                                                handling and a comfortable riding position. The ER-6n has all the performance of
                                                its Ninja sibling, in a new and distinctive guise.
                                            </div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotatorItem>
                            <telerik:RadRotatorItem CssClass="slide">
                                <ItemTemplate>
                                    <div id="slide_04" class="slide">
                                        <h6>
                                            Kawasaki Z1000</h6>
                                        <div class="slideContent">
                                            <img src="Images/z1000.jpg" alt="Kawasaki Z1000" title="Kawasaki Z1000" width="251px"
                                                height="164px" style="float: left;" />
                                            <div class="Motor_Description">
                                                <img alt="open quotation" src="Images/quotmark-left.gif" />
                                                Kawasaki upped the ante in the naked bike arena with the entrance of the Z1000.
                                                Beyond its muscular torque delivery and radical styling, the Z1000 dishes out a
                                                visceral riding experience. This purpose-built Kawasaki is equally at home in the
                                                garages of both practical motorcyclists simply seeking a smile-producing weekend
                                                ride and owners desiring a bike that doesn't fit the norm.
                                            </div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotatorItem>
                        </Items>
                    </telerik:RadRotator>
                </div>
            </div>
            <div class="controls">
                <div id="divState" style="color: Red;" class="sshow">
                    Paused</div>
                <div class="crtl">
                    <span style="color: #2b8fec; font-size: 15px; font-weight: normal;">Last action:&nbsp;</span><span
                        id="spanLastAction">Pause</span></div>
                <ul class="ctrlBtns">
                    <li>
                        <telerik:RadButton ID="RadButton5" runat="server" Width="19px" Height="21px" CssClass="raw"
                            AutoPostBack="false" Text="Play Previous" OnClientClicked="showNextItem" CommandName="Left">
                            <Image ImageUrl="img/shRaw.png" HoveredImageUrl="img/shRawHov.png" />
                        </telerik:RadButton>
                    </li>
                    <li class="playSpace">
                        <telerik:RadButton ID="PlayPause" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Width="17px"
                            Height="21px" AutoPostBack="false" OnClientCheckedChanged="OnClientCheckedChanged">
                            <ToggleStates>
                                <telerik:RadButtonToggleState ImageUrl="img/shPlay.png" HoveredImageUrl="img/shPlayHov.png"
                                    CssClass="play" />
                                <telerik:RadButtonToggleState ImageUrl="img/shPause.png" HoveredImageUrl="img/shPauseHov.png"
                                    Selected="true" CssClass="pause" />
                            </ToggleStates>
                        </telerik:RadButton>
                    </li>
                    <li>
                        <telerik:RadButton ID="RadButton1" runat="server" Width="19px" Height="21px" CssClass="ff"
                            AutoPostBack="false" Text="Play Next" CommandName="Right" OnClientClicked="showNextItem">
                            <Image ImageUrl="img/shFF.png" HoveredImageUrl="img/shFFHov.png" />
                        </telerik:RadButton>
                    </li>
                </ul>
            </div>
        </div>
        <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