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

How to add my own button to content within a step

1 Answer 128 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Veteran
Iron
Rob asked on 14 Mar 2017, 06:26 PM

Within a step of my radwizard I need a button that is supposed to dynamically add some fields to my form as needed. No matter what I do, the button click event won't fire. What am I missing? I've added a simple demo to demonstrate:

<telerik:RadWizard RenderMode="Lightweight" ID="RadWizardIncidentGroupA" runat="server" CssClass="formfont" Width="100%" OnClientLoad="OnClientLoad" Skin="Bootstrap"
OnClientButtonClicking="OnClientButtonClicking"
OnFinishButtonClick="RadWizardIncidentGroupA_FinishButtonClick" 
 OnCancelButtonClick="RadWizardIncidentGroupA_CancelButtonClick"
BorderColor="#cccccc">
<WizardSteps>
     <telerik:RadWizardStep ID="RadWizardStep1" Title="Administrative" StepType="Start" DisplayCancelButton="true" 
                 runat="server">
                    <div class="inputWrapper">
                         <asp:Label ID="lblTest" Text="Test1" runat="server"></asp:Label>
                         <asp:Button ID="ChangeText" runat="server" Text="Add an Offense" OnClick="ChangeText_Click" />
                    </div>
               </telerik:RadWizardStep>

         </WizardSteps>

</telerik:RadWizard>

 

CODEBEHIND:

protected void ChangeText_Click(object sender, EventArgs e)
{
            lblTest.Text = "Test2";
}

1 Answer, 1 is accepted

Sort by
0
chee
Top achievements
Rank 1
answered on 17 May 2017, 02:39 AM
Hi, have you got the solution for this? Do you mind to share?
Tags
Wizard
Asked by
Rob
Top achievements
Rank 1
Veteran
Iron
Answers by
chee
Top achievements
Rank 1
Share this question
or