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

Finish Button Not Working

2 Answers 98 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 20 Oct 2015, 04:31 PM

I'm sure there is something obvious that I am missing, but I'm not seeing it. I've built my RadWizard form. When user gets to the "finish" page, and clicks the Finish button, nothing happens. I can't figure out how to fire an onclick for this button.  Below is code that I've stripped down to basic functionality. What am I missing?

 

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="sandbox2.aspx.cs" Inherits="sandbox2" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI"
                    Name="Telerik.Web.UI.Common.Core.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI"
                    Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI"
                    Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadWindowManager ID="windowManager1" runat="server" Style="z-index: 100001">
            </telerik:RadWindowManager>
 
        <telerik:RadWizard ID="RadWizard1" Runat="server" ResolvedRenderMode="Classic">
            <WizardSteps>
                <telerik:RadWizardStep ID="RadWizardStep1" runat="server" StepType="Finish">
                </telerik:RadWizardStep>
            </WizardSteps>
        </telerik:RadWizard>
 
</asp:Content>

 

using System;
using System.Linq;
using Telerik.Web.UI;
using System.Web.UI;
 
public partial class sandbox2 : System.Web.UI.Page
{
    protected void RadWizard1_FinishButtonClick(object sender, WizardEventArgs e)
    {
        Response.Write("Clicked"); ;
    }
    
}

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 21 Oct 2015, 03:37 PM
Hello,

It seems the OnFinishButtonClick event is not connected to the event handler. To connect it you can set the handler to the OnFinishButtonClick property in the markup:
<telerik:RadWizard ID="RadWizard1" Runat="server" ResolvedRenderMode="Classic" OnFinishButtonClick="RadWizard1_FinishButtonClick">

Regards,
Ivan Danchev
Telerik
0
Matt
Top achievements
Rank 1
answered on 22 Oct 2015, 02:08 PM
That's it! I did not see that in the demos I was modeling after. Thanks!
Tags
Wizard
Asked by
Matt
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Matt
Top achievements
Rank 1
Share this question
or