This is a migrated thread and some comments may be shown as answers.

RadWizard demo - Server Side

1 Answer 124 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Pavol
Top achievements
Rank 1
Pavol asked on 20 Feb 2017, 07:29 PM

Hi,

I am reffering to this demo of Wizard: http://demos.telerik.com/aspnet-ajax/wizard/overview/defaultcs.aspx

Initial disabling of all tabs but first, and then enabling next tab on "Next" button works well until your Wizard do any postback. For example try to add OnNextButtonClick handler to wizard and tabs enabling/disabling works no more.

Could you please provide an example how to achieve correct funcionality of enabling tabs on server side?

 

Thanks,

P.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 23 Feb 2017, 02:29 PM
Hello Pavol,

That is an expected behavior because when a postback is triggered the control is loaded again and in the OnClientLoad event handler, all steps except the first one are disabled.

One possible workaround is to disable the steps that are after the after the active one using the following code:
window.OnClientLoad = function (sender, args) {
    for (var i = sender.get_activeIndex() + 1; i < sender.get_wizardSteps().get_count() ; i++) {
        sender.get_wizardSteps().getWizardStep(i).set_enabled(false);
    }
}

Regards,
Peter Milchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Wizard
Asked by
Pavol
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or