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

Upload

4 Answers 112 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Raffaele
Top achievements
Rank 1
Raffaele asked on 18 Apr 2012, 11:51 AM
Hi support,
I have a trial version of RadControls for ASP.NET AJAX
I have developed a file explorer control into sharepoint web part and i use into configuration a network path share.

The control have a problems with upload.
1)sometimes the upload form show empty if i change the page and return in file explorer file upload show correctly.

2)in load method i set the property of fileexplorer

FileExplorer1.Configuration.ViewPaths = paths.ToArray()

 

FileExplorer1.Configuration.UploadPaths = paths.ToArray();

FileExplorer1.Configuration.DeletePaths = paths.ToArray();

FileExplorer1.Configuration.SearchPatterns =

 

new[] { "*.*" };

FileExplorer1.Configuration.ContentProviderTypeName =

 

typeof(CustomFileSystemProvider).AssemblyQualifiedName;

but when i try set FileExplorer.Upload.MaxFileInputsCount
FileExplorer.Upload is null

why?

Thx


4 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 Apr 2012, 02:57 PM
Hi Raffaele,

You can experience this error in case where UploadPaths property of RadFileExplorer is not set or is set to an empty array ( UploadPaths = new array[0]). In such cases, the Upload control is not visible and the Upload property of RadFileExplorer returns null.

To avoid this you should modify apply modifications to the Upload control only during initial page load, for subsequent postbacks the settings will be applied from the viewstate.
if(!IsPostBack)
    RadFileExplorer1.Upload.MaxFileInputsCount = 1;

 

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Raffaele
Top achievements
Rank 1
answered on 20 Apr 2012, 03:00 PM
Ok, i try.
For question number 1 have you a response? 
0
Dobromir
Telerik team
answered on 23 Apr 2012, 03:00 PM
Hi Raffaele,

Please accept my apologies for missing your first question.

The observed behavior is caused by a minor bug in RadFileExplorer related to changing UploadPaths property dynamically. This issue is already handled and fix will be available with the next internal build (or in the next official release). Unfortunately, I am not able to provide suitable workaround for this problem.

Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Raffaele
Top achievements
Rank 1
answered on 23 Apr 2012, 03:39 PM
Thanks for your response.

Kind Regards
Raffaele.
Tags
FileExplorer
Asked by
Raffaele
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Raffaele
Top achievements
Rank 1
Share this question
or