This is a migrated thread and some comments may be shown as answers.

Modify DrawRectangle Dialog

1 Answer 23 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 03 Mar 2017, 06:42 PM

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!

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 08 Mar 2017, 01:37 PM
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.
Tags
ImageEditor
Asked by
Tony
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or