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

[Solved] Missing templatepreviewer.ascx from EditorControls

2 Answers 105 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Matt Cowen
Top achievements
Rank 1
Matt Cowen asked on 30 Oct 2009, 04:00 PM
I store templates for the Editor in a database so I'm trying to make the preview load the file from the db. Is this possible? I've been having a look into the controls and I don't have the templatepreviewer.ascx in my editorcontrols directory (version Q1 2009). I've seen several posts referring to it so has this moved? What am I missing.

TVM
Matt

2 Answers, 1 is accepted

Sort by
0
Matt Cowen
Top achievements
Rank 1
answered on 02 Nov 2009, 11:01 AM
The templatepreviewer.ascx is definitely not in my version of the editor. What I am doing is setting the URL of the file item in the GetChildFiles method of the overridden FileBrowserContentProvider to be an aspx page which will retrieve the document and stream it to the client.
0
Rumen
Telerik team
answered on 04 Nov 2009, 03:31 PM
Hi Matt,

Which version of RadEditor do you use in your project: RadEditor Classic (RadEditor.dll) or RadEditor for ASP.NET AJAX (Telerik.Web.UI)?

RadEditor for ASP.NET AJAX does not offer a file named templatepreviewer.ascx. The file that you are looking for is named TemplateManager.ascx and it is located in the EditorDialogs. You can see how to enable the editor to use its external dialogs here.

You should see how to implement a file browser content provided in this live demo: Custom File Dialogs Content Provider.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Matt Cowen
Top achievements
Rank 1
Answers by
Matt Cowen
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or