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

Document Manager only shows files with .pdf ext

1 Answer 51 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 08 Jul 2010, 09:23 PM
I am using the document manager in a editor but when I access the folder, it only displays PDF's even though there are .zip, .doc, and .xls. Is there some default setting that needs to be over written to show any file?

<

 

telerik:RadEditor DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Height="800" Width="700" Skin="Telerik" OnClientLoad="OnClientLoad"></telerik:RadEditor>

 


RadEditor1.DocumentManager.ViewPaths =

new string[] { "/path/" + variable+ "/" };

 

RadEditor1.DocumentManager.UploadPaths =

new string[] { "/path/" + variable+ "/" };

 

RadEditor1.DocumentManager.DeletePaths =

new string[] { "/path/" + variable+ "/" };

Thanks!

 


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Jul 2010, 08:17 AM
Hi Mike,

You should also set the SearchPatterns property and list the desired extensions:

RadEditor1.DocumentManager.SearchPatterns = new string[] { "*.doc","*.txt","*.docx","*.xls","*.xlsx","*.pdf","*.mp3","*.wma","*.wav","*.mov","*.mp4","*.wmv","*.mpg","*.avi" };

If you want to allow all file types set *.*

Best wishes,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Mike
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or