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

Rad async upload postback triggers

1 Answer 149 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Jita
Top achievements
Rank 1
Jita asked on 12 Oct 2015, 02:17 PM

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.

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 15 Oct 2015, 07:43 AM
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
Tags
AsyncUpload
Asked by
Jita
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or