Edit this page

Customize the Control Buttons

RadRotator provides the ability to specify custom buttons as rotator's buttons - Up and Down for vertical rotator or Left and Right for horizontal rotator. All you need to do is to set UpButtonID and DownButtonID or LeftButtonID and RightButtonID properties of the ControlButtons of the rotator to the IDs of the corresponding custom buttons. The custom buttons can be placed anywhere on the page.

<asp:Image ImageUrl="images/right.gif" ID="img_right" AlternateText="right" runat="server" Style="cursor: hand; float: right;" />
<asp:Image ImageUrl="images/left.gif" ID="img_left" AlternateText="left" runat="server" Style="cursor: hand; float: left;" />

<telerik:RadRotator RenderMode="Lightweight" DataSourceID="xmlDataSource1" runat="server" ID="RadRotator1" Width="314" Height="55" ItemWidth="100" ItemHeight="50" ScrollDirection="Left" RotatorType="Buttons">
        <img src="Images/<%# XPath("Image") %>" alt="" style="margin: 0px 11px;" />
    <ControlButtons LeftButtonID="img_left" RightButtonID="img_right" />
<asp:XmlDataSource ID="xmlDataSource1" runat="Server" DataFile="data.xml"></asp:XmlDataSource>