How to get RadAsyncUpload in RadEditor

2 posts, 1 answers
  1. VnDevil
    VnDevil avatar
    58 posts
    Member since:
    Oct 2012

    Posted 11 Dec 2012 Link to this post

    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
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Dec 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top