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

Set properties of embedded controls

2 Answers 126 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jimmie
Top achievements
Rank 2
Jimmie asked on 24 Feb 2009, 10:46 PM
I know this one's still in beta but is there any way to set the AllowedFileExtensions, AllowedMimeTypes and MaxFileSize of the integrated RadUpload Control?

2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 03 Mar 2009, 08:35 AM
Hello Jimmie,

Currently the RadFileExplorer exposes most of the embedded controls through public properties, e.g.
RadFileExplorer1.Grid, RadFileExplorer1.ToolBar, RadFileExplorer1.TreeView. However, it does not expose the Upload control at this point. We have added this to our TODO list and it will be done for the official Q1 2009 release.
Then you will be able to set properties directly to the RadUpload.


Best wishes,
Tervel
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.
0
Accepted
Lini
Telerik team
answered on 04 Mar 2009, 08:19 AM
Hello Jimmie,

Actually you do not have to wait until the next release - the properties you wish to set are actually part of the RadFileExplorer configuration, so you should set them via the Configuration property:

RadFileExplorer1.Configuration.SearchPatterns = new string[] { "*.jpg", "*.gif" };
RadFileExplorer1.Configuration.MaxUploadFileSize = 600 * 1024;

the above code will set the max upload size to 600KB (600 * 1024 bytes) and the allowed file extensions to .jpg and .gif. We will allow access to the RadUpload component in the next release, but the approved method for setting the file extensions and max upload size is with the Configuration property.

Sincerely yours,
Lini
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
FileExplorer
Asked by
Jimmie
Top achievements
Rank 2
Answers by
Tervel
Telerik team
Lini
Telerik team
Share this question
or