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

[Solved] ImageManager standalone: customization

1 Answer 133 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alain Froment
Top achievements
Rank 1
Alain Froment asked on 08 Jul 2009, 04:20 PM
Hi,

I red the KB article (http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx) to use to ImageManager dialog standalone. It works great but i need more customization like disable "properties" tab in the preview section, or not display the imageeditor button.
How can I do this ?
Must I create my own custon dialog or can I use ImageManager dialog and pass it some arguments ?

Thanks and regards

Allan

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Jul 2009, 09:16 AM
Hi Alain,

All you need to do is to register the external dialogs by setting
imageManager.Parameters["ExternalDialogsPath"] = "~/EditorDialogs/"; 
and copying the EditorDialogs to the root of the web project. After that you can customize the ImageManager.ascx and FileBrowser.ascx control as per your requirements.

For example to hide the Image Editor button open the \EditorDialogs\ImageManager.ascx file and set Visible="False" to the following tag:

<telerik:RadToolBarButton Text="Image Editor" Visible="false" ToolTip="Image Editor" Value="ImageEditor"
                            Enabled="false" CssClass="icnImageEditor" />

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Alain Froment
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or