Modify DrawRectangle Dialog

2 posts, 0 answers
  1. Tony
    Tony avatar
    4 posts
    Member since:
    Jun 2015

    Posted 03 Mar Link to this post

    Hi,

    I'm looking to make a few changes to the DrawRectangle tool dialog box, but am having difficulty.

    Specifically, I would like to do the following.

    * Change the title text (default is  "Draw Rectangle")

    * Remove the FillColor, DrawColor, and LineSize controls and set these values to Black, Black, and 1 respectively.

    * When opening the dialog box, the user simply has to click the page to draw the rectangle and clicks apply when done.

     

    Thanks!

     

  2. Vessy
    Admin
    Vessy avatar
    1678 posts

    Posted 08 Mar Link to this post

    Hi Tony,

    Please, find my comments and suggestions listed bellow:

    * Change the title text (default is  "Draw Rectangle")
    You can set the desired custom value in the DrawRectangle_Title localization string of the ImageEditor's dialogs:

    protected void Page_Load(object sender, EventArgs e)
    {
        RadImageEditor1.Localization.Dialogs.DrawRectangle_Title = "Custom title";
    }

    * Remove the FillColor, DrawColor, and LineSize controls and set these values to Black, Black, and 1 respectively.
    You can both set the desired values and hide the target controls by modifying the DrawRectangle.ascx dialog of the ImageEditor. More details on how to enable the external dialogs of the control are available here:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/imageeditor/functionality/loading-the-dialogs-from-external-files


    * When opening the dialog box, the user simply has to click the page to draw the rectangle and clicks apply when done.

    This is the default behavior of the dialog, can you elaborate a bit on the exact change in the command you need to achieve?


    Regards,
    Vessy
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top