Dialog with embedded wizard, activate getting called excessively

0 Answers 22 Views
Dialog Wizard
Eric
Top achievements
Rank 1
Eric asked on 28 Mar 2022, 01:04 PM

I have a kendo Dialog with an embedded wizard, populated by ajax.  On the first invocation of the dialog with the wizard, everything works fine.   Then it gets closed, I empty the wizard div on dialog close.  On the second invocation of the dialog, the activate method on the wizard starts getting called multiple times on the 'Next' button click, always at least once with the wrong step, the last one.  Is there a way to clear out the event handler for the wizard each time the dialog starts up?

Thanks.

Eric
Top achievements
Rank 1
commented on 28 Mar 2022, 01:12 PM

OK, never mind, for anyone else that runs into this....you have to call the destroy method on the wizard so

$("#wizard").data("kendoWizard").destroy();
This seems to detach all of the handlers correctly.
Martin
Telerik team
commented on 31 Mar 2022, 07:32 AM

Hi, I am just sharing a link on destroying widgets for reference.

No answers yet. Maybe you can help?

Tags
Dialog Wizard
Asked by
Eric
Top achievements
Rank 1
Share this question
or