Finish Button Not Working

3 posts, 1 answers
  1. Matt
    Matt avatar
    13 posts
    Member since:
    Aug 2015

    Posted 20 Oct 2015 Link to this post

    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. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 21 Oct 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt
    Matt avatar
    13 posts
    Member since:
    Aug 2015

    Posted 22 Oct 2015 in reply to Ivan Danchev Link to this post

    That's it! I did not see that in the demos I was modeling after. Thanks!
Back to Top