Page 1 of 1

How to call CANCEL

PostPosted: 15 Nov 2017 20:22
by mrcarver
CG Gurus,

I am having to create my own navigation of the wizard. How does one cause the CGWizard to "cancel" using my own event? The methods for Previous, Next, and Finish are exposed, but the Cancel is not.

Please advise.

Regards,
Monte Carver

Re: How to call CANCEL

PostPosted: 16 Nov 2017 16:57
by Alexander Bulei
Hi mrcarver,

The methods for Previous, Next, and Finish are exposed, but the Cancel is not.


There is no any Cancel method, because it's not available in plugin.
I've checked the plugin, and cancel button trigger the Cancel event only, nothing more.

https://github.com/rstaib/jquery-steps/wiki

Best Regards.

Re: How to call CANCEL

PostPosted: 16 Nov 2017 19:27
by mrcarver
Alexander,

I assumed it would be straight forward to mimic the navigation buttons with my own. But, I need the all the events to fire, which does not occure when using myWiz.Next, myWiz.Previous, etc.

Please advise how to mimic the behavior of the built in navigation buttons. Is there an event I am missing?

Regards
Monte Carver

Re: How to call CANCEL

PostPosted: 16 Nov 2017 19:31
by Alexander Bulei
Hi mrcarver,

The default "Cancel" button of wizard do nothing, only triggers the OnCanceled event and nothing more.

So, you should decide, what you want to do, when user clicks on your custom cancel button.

Best Regards.

Re: How to call CANCEL

PostPosted: 16 Nov 2017 21:33
by mrcarver
Alexander,

At this point I am just trying to mimic the action of clicking the Previous and Next button of the wizard. But using the "Previous" and "Next" methods does not cause the various Wizard events to fire, which is a "must have".

Please advise how to accomplish this feature.

Regards,
Monte Carver