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 Q1 2012 released 04/11/2012
select

ImageEditor / ToolBar Mode and Position

Configure RadImageEditor




Zoom:100%Size:0x0pxPos.:(-,-)Last Action:None

  • 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.

    The possible values for the ToolBarMode are:
    • Default - the toolbar is static and is positioned above the editable area by default
    • Docked - the toolbar is movable and can be docked to one of the four docking zones or left floating.

    The ToolBarPosition specifies where the ToolBar will be rendered. Here are the possible values:
    • Top - the toolbar is positioned above the edited image. This is the default value.
    • Right - the toolbar is placed to the right of the editable area.
    • Bottom - the toolbar is rendered below the content area.
    • Left - the toolbar is positioned to the left of the edited image.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ 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>

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-2012 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451