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

How to get RadAsyncUpload in RadEditor

1 Answer 166 Views
Editor
This is a migrated thread and some comments may be shown as answers.
VnDevil
Top achievements
Rank 2
VnDevil asked on 12 Dec 2012, 03:47 AM
Hi Telerik,

I'm using RadEditor and set the ImageManager dialog with EnableAsyncUpload = true but I can't set property TemporaryFolder of AsyncUpload like RadFileExplorer

RadEditor1.ImageManager.EnableAsyncUpload = true; // OK
RadEditor1.ImageManager.AsyncUpload.TemporaryFolder = "/Uploads"; // Does not exists
 
RadFileExplorer1.Configuration.EnableAsyncUpload = true; // OK
RadFileExplorer1.AsyncUpload.TemporaryFolder = "/Uploads"; // OK


Now how can I set the TemporaryFolder of AsyncUpload in ImageManager or DocumentManager... in RadEditor ???
Please help me, thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 12 Dec 2012, 06:43 AM
Hi

You can try to access the AsyncUpload control in the FileBrowser dialogs of RadEditor using as a base the code solution provided in this KB article: Displaying single upload control in the FileBrowser Upload manager.

C#:
protected void Page_Load(object sender, System.EventArgs args) 
    
        Telerik.Web.UI.RadFileExplorer rfe = (Telerik.Web.UI.RadFileExplorer)this.FindRadControl(this.Page); 
        if (rfe != null
        {
            rfe.AsyncUpload.TargetFolder = "Your folder";
        
    }


Hope this helps.

Regards,
Princy.
Tags
Editor
Asked by
VnDevil
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or