AsyncUpload Control - PostbackTriggers and RadWizard Buttons

Thread is closed for posting
2 posts, 0 answers
  1. Giuseppe
    Giuseppe avatar
    3 posts
    Member since:
    Apr 2014

    Posted 25 Feb 2016 Link to this post

    Hi guys, i need to persist file across Postback while users click on RadWizard NextButton.

    I can't use PostbackTriggers because i don't know the Nextbutton ID. Can you give me an advice or an alternative ?
    Thanks much for your time.

  2. Nencho
    Nencho avatar
    1661 posts

    Posted 01 Mar 2016 Link to this post

    Hello Giuseppe,

    The PostbackTriggers property indicates for which control postback the RadAsyncUpload should listen to, in order to submit the selected file. As far as I had understood your scenario, you need to avoid the submission of the file when navigating trough different steps. If that's correct, you can set the PostbackTriggers property value to some button on your page. Please consider the below implementation:

    <telerik:RadWizard ID="RadWizard1" runat="server" Skin="Bootstrap" OnActiveStepChanged="RadWizard1_ActiveStepChanged" DisplayNavigationButtons="true">
            <telerik:RadWizardStep ID="RadWizardStep1" Title="Sign In" runat="server" StepType="Start">
                <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" PostbackTriggers="btnUpload"></telerik:RadAsyncUpload>
                <telerik:RadButton runat="server" ID="btnUpload" Text="UploadFile"></telerik:RadButton>
            <telerik:RadWizardStep ID="RadWizardStep2" Title="Authorization" runat="server" StepType="Step">
            <telerik:RadWizardStep ID="RadWizardStep3" runat="server" Title="Application Information" StepType="Finish">

    Hope this information helps.

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