Maintaining State for Telerik RadAsyncUpLoad control across Panels

2 posts, 0 answers
  1. Neeraj
    Neeraj avatar
    2 posts
    Member since:
    Feb 2012

    Posted 01 Mar 2012 Link to this post

    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
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 05 Mar 2012 Link to this post

    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.
Back to Top