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

AsyncUpload Control - PostbackTriggers and RadWizard Buttons

1 Answer 236 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Giuseppe
Top achievements
Rank 1
Giuseppe asked on 25 Feb 2016, 07:43 PM

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.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 01 Mar 2016, 12:16 PM
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">
    <WizardSteps>
        <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>
        <telerik:RadWizardStep ID="RadWizardStep2" Title="Authorization" runat="server" StepType="Step">
        </telerik:RadWizardStep>
        <telerik:RadWizardStep ID="RadWizardStep3" runat="server" Title="Application Information" StepType="Finish">
        </telerik:RadWizardStep>
    </WizardSteps>
</telerik:RadWizard>

Hope this information helps.

Regards,
Nencho
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
Upload (Obsolete)
Asked by
Giuseppe
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or