Show confirmation window on Cancel

2 posts, 0 answers
  1. MBEN
    MBEN avatar
    159 posts
    Member since:
    Nov 2011

    Posted 29 Aug Link to this post

    In my wizard, i want to pop up a confirmation window if the user clicks cancel button. If the user confirms (yes) then i want to cancel the wizard processing and go to my home page else continue on the same page. is it possible?
  2. Peter Milchev
    Admin
    Peter Milchev avatar
    136 posts

    Posted 01 Sep Link to this post

    Hello,

    You could subscribe to the OnClientButtonClicked event and if the clicked button is Cancel, then you should show your confirmation window. Here is a sample implementation of the approach:

    <script>   
        function OnClientButtonClicked(sender, args) {
            var command = args.get_command();
            // if cancel button is clicked
            if (command == "3") {
                // Your custom confirmation logic here
            }
        }
    </script>

    <telerik:RadWizard ID="RadWizard1" runat="server" DisplayCancelButton="true" OnClientButtonClicked="OnClientButtonClicked">
        <WizardSteps>
            <%-- Steps here --%>
        </WizardSteps>
    </telerik:RadWizard>

    Regards,
    Peter Milchev
    Telerik by Progress
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top