I have a Telerik Window with an Telerik Wizard as its content.
I've implemented 7 steps. In the first step I have an Radiogroup. Depending of the groups value i disable step 2 and 3 and if I click "Next"-Button I want to skip them and jump to step 4.
Here are some code snippets:
OnChange event of the RadioGroup in step 1:
function onChangeCancelType(radioGrp) {
var $j = jQuery.noConflict();
var wizard = $j("#CancelWizard").data("kendoWizard");
if (radioGrp.newValue === '1') {
wizard.enableStep(1, true);
wizard.enableStep(2, true);
} else {
wizard.enableStep(1, false);
wizard.enableStep(2, false);
}
}
OnClick event of Next-button:
function onClickStep1(e) { e.preventDefault(); var $j = jQuery.noConflict(); var wizard = $j("#CancelWizard").data("kendoWizard"); var radioGrp = $j("#CancelType").data("kendoRadioGroup"); if (radioGrp.value() === '2') { wizard.select(3); } else { wizard.select(1); } }
What happens is, that in case of selecting Radiogroup value 2 the wizard jumps to step 5 instead of step 4.
I'm sure there is something stupid I oversee here.
Thank's for help
Timo