Rad async upload postback triggers

2 posts, 0 answers
  1. Jita
    Jita avatar
    8 posts
    Member since:
    Sep 2014

    Posted 12 Oct 2015 Link to this post

    I have a page with user control A and user control B.

    In user control A, I have a RadAsyncFileUpload. while I click on a button (say Next) The page loads user control B. I have a breadcrumb set on top of the page. So what I want is when I hit the breadcrumb to load the previous state (i.e. load user control A again) I want the RadAsyncFileUpload to retain the file information and value.

    How can I achieve that? I' pretty new to telerik. 

     

    I tried the following from the back end (so that only hitting the cancel will triger postback, all other click will retain the information for the upload control)

    Telerik.Web.UI.RadButton btncancel = (Telerik.Web.UI.RadButton)this.Parent.Parent.FindControl("btn_Cancel_ID");
     RadAsyncFileUpload.PostbackTriggers = new string[] { btncancel.ID };​

    I also have "AllowedFileExtensions" on the file upload control. with the postback trigger being enables as above, when I try to navigate clicking the next button, it's not finding any file uploaded in the first place and I'm getting "RadAsyncFileUpload.UploadedFiles.Count" to be zero.

  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 15 Oct 2015 Link to this post

    Hi Jita,

    Can you paste your code? When you click on the breadcrumb do you make a cross page posting? Why don't you use RadTabStrip or RadWizard for navigation.

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top