ToolBar Behavior
This example shows how to configure the ToolBar of the RadImageEditor control. Two properties control the ToolBar behavior: ToolBarMode and ToolBarPosition. They should be used together.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.ImageEditor.ToolBarModes.DefaultCS" %><%@ 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"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <qsf:HeadTag ID="Headtag1" runat="server" /> <style type="text/css"> .divList { float: left; width: 170px; } </style></head><body class="BODY"> <form id="form1" runat="server"> <qsf:Header ID="Header1" runat="server" NavigationLanguage="c#" /> <telerik:RadScriptManager ID="ScriptManager1" runat="server" /> <telerik:RadFormDecorator runat="server" DecoratedControls="Label,RadioButtons,Buttons" /> <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Enabled="true" Title="Configure RadImageEditor" Expanded="true" Style="text-align: left;" HorizontalAlign="Right" Height="180px" Width="400px"> <div style="padding-left: 25px;"> <div class="divList"> <asp:Label ID="Label1" Text="Change ToolBar Position" runat="server" AssociatedControlID="RadiosToolBarPosition" Font-Bold="true" /> <asp:RadioButtonList ID="RadiosToolBarPosition" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadiosToolBarPosition_SelectedIndexChanged"> <asp:ListItem Text="Top" Selected="True" /> <asp:ListItem Text="Right" /> <asp:ListItem Text="Bottom" /> <asp:ListItem Text="Left" /> </asp:RadioButtonList> </div> <div class="divList"> <asp:Label ID="Label2" Text="Change ToolBar Mode" runat="server" AssociatedControlID="RadiosToolBarMode" Font-Bold="true" /> <asp:RadioButtonList ID="RadiosToolBarMode" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadiosToolBarMode_SelectedIndexChanged"> <asp:ListItem Text="Default" Selected="True" /> <asp:ListItem Text="Docked" /> </asp:RadioButtonList> </div> </div> </qsf:ConfiguratorPanel> <telerik:RadImageEditor ID="RadImageEditor1" runat="server" ImageUrl="~/ImageEditor/images/hay.jpg" Width="720px" Height="430px"> </telerik:RadImageEditor> <qsf:Footer runat="server" ID="Footer1" /> </form></body></html>
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.