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

"drop down Llist" instead of "text box" in ImageMap

1 Answer 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
MANsour
Top achievements
Rank 1
MANsour asked on 16 Apr 2012, 07:36 AM
Hi,
The Image Map Editor has a text box for URL, but I want a Drop Down list instead of the text box. After that I want to read data from database and fill it with custom link.
could you help me?

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 17 Apr 2012, 10:28 PM
Mansour:

It is possible to register the external dialogs of RadEditor, as shown in this online demo: Customize Built-in Dialogs.

By default, all RadEditor dialogs are embedded as resource files in the Telerik.Web.UI.dll.

In order to provide an easy way to modify the editor's dialogs, the RadControls installation now comes with a folder named EditorDialogs which contains all editor's dialogs files (including the image map dialog). With a default installation, you'd find this folder at "C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q1 2012\EditorDialogs"

You can modify the "imagemap.ascx", replacing the url textbox with a droplist.

Finally, you can configure RadEditor to use the external dialog files by copying the EditorDialogs folder to your web application and setting the ExternalDialogsPath property to point to it, as in the snippet below:

<telerik:radeditor ExternalDialogsPath="~/Editor/Examples/ExternalDialogsPath/EditorDialogs/" runat="server" ID="RadEditor1"></telerik:radeditor>

I'm not sure how you can get access to the new droplist to populate your custom links from the database, but it looks like you may be able to get a handle on the dialog using the method specified in the Resizing RadEditor's dialogs documentation page.

Hope this helps!
Tags
Editor
Asked by
MANsour
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or