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

Maintaining State for Telerik RadAsyncUpLoad control across Panels

1 Answer 67 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Neeraj asked on 01 Mar 2012, 09:54 PM

Here is another issue with Telerik Control. Following is the scenario:

 

We have three panels on the form which is Ajax enabled:

1.       Panel 1 – where user enters information.

2.       Panel 2 – where user uploads document using Telerik RADAsyncUpload control.

3.       Panel 3 -  where user confirms his information and uploaded files before he submits.

 

Issue:                                      

 

The user has the option to go back and forth between above three panels to update any information. But the problem arises when user selects files in Telerik RADAsyncUpload control and he goes back to the Panel 1 and Comes back to the Panel 2 (or from Panel 3 to Panel 2). The files that the user is selected are lost. The telerik upload control doesn’t maintain the state of the selected files. Instead it goes back to the initial state.

 

We tried to use the “PostbackTriggers” property but it is not working.

 

Please assist us asap.

Thanks.
N

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 05 Mar 2012, 09:26 AM
Hello,

From what you have describe as a scenario, it seems to me that when you switch between your panels, the content of the ones beside the selected one is not being rendered on the page. If this is the case what you experienced as a behavior with the RadAsyncUpload is the expected one. In order to sustain its uploaded files the RadAsyncUpload should be rendered on the page at all time, between panels switching. In scenarios like your my suggestion is to use RadTabStrip with RadMultiPage to implement this wizard type behavior. There is a demo on this matter which you could use as a reference.The benefit of this approach is the fact that the content of the pageviews not been selected will be still rendered on the page, but hidden which will let the RadAsyncUpload to sustain its uploaded files.

Greetings,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
Neeraj
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or