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.
I have a grid that has some data, and when I press an "edit" button, I want a wizard with forms to edit the contents over multiple pages. Because of all the binding, I figured I could re-use the same wizard and popup and just reload the data inside. This works pretty well until I add validation. For some reason setting model data results in the value being NULL inside the model.
const model = discountWizard.steps()[0].form.editable.options.model;
model.set("requiredField", "required"); // required: true in form
model.set("optionalField", "optional"); // required: false in form
// results in
dirtyFields: Object { requiredField: false, optionalField: true }
optionalField: "optional"
requiredField: null
I've added a reproducer in Dojo: https://dojo.telerik.com/eQoGApIL
How can I fix this?
On a sidenote, the reset button doesn't seem to do anything by default, is that intended?