How to add my own button to content within a step

2 posts, 0 answers
  1. Rob
    Rob avatar
    8 posts
    Member since:
    Mar 2017

    Posted 14 Mar Link to this post

    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";
    }

  2. chee
    chee avatar
    2 posts
    Member since:
    May 2017

    Posted 16 May in reply to Rob Link to this post

    Hi, have you got the solution for this? Do you mind to share?
Back to Top