RadUpload Control not working as expected

2 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    6 posts
    Member since:
    Oct 2012

    Posted 11 Dec 2012 Link to this post


    The RadUpload is not working as expected.

    I have placed the RadUpload control inside Ajax:Updatepanel in Usercontrol(.ascx), I am calling the usercontrol in my .aspx page. 

    Once the page get loaded, I have selected the files and tried to upload through button click event.  But "radFileUpload.UploadedFiles.Count" is coming as 0. It supposed to return selected files count.

    It was working fine if I placed the RadUpload control directly in to .Aspx page.(Without UpdatePanel)

    So Please provide me a valuable solution.

    Saravanan M
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Dec 2012 Link to this post

    Hi Saravanan,

    The problem happens, because RadUpload cannot upload files using AJAX calls. In order to upload a file your application must perform a full page postback. You can create a PostBackTrigger in the UpdatePanel for the button that initiates postback as follows.

    <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <telerik:radupload runat="server" id="RadUpload1" />
            <asp:Button runat="server" ID="ButtonSubmit" Text="Postback" />
            <asp:PostBackTrigger ControlID="ButtonSubmit" />

    Hope this helps.

  3. DevCraft R3 2016 release webinar banner
Back to Top