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

navigate to next page click on context itself rather than click on next and prevous button

4 Answers 265 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Binary
Top achievements
Rank 1
Binary asked on 18 Dec 2015, 02:55 PM
Is there way to navigate to next page of wizard by click on the content itself (eg. Gridview row ) instead of clicking on the previous and next button on wizard ? I do not want to use "next" and "previous" button that comes with the wizard. For previous button I just want to use wizard tab itself but for next button I want to use content on page itself ( may be button on content page itself or table row etc ). Can this be achieve in wizard ?

4 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 22 Dec 2015, 11:43 AM
Hello Binary,

Yes, you can navigate to the next step from any element in the content of a given step. You can simply set the ActiveStepIndex property of the RadWizard, to the value of the index of the step that you need to navigate to. For example:

protected void btnNavigate_Click(object sender, EventArgs e)
    {
        RadWizard1.ActiveStepIndex = RadWizard1.ActiveStepIndex + 1; // this is navigate to the next step
    }

Regards,
Nencho
Telerik
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 29 Jun 2016, 10:03 AM

When I try this for dynamically generated wizardsteps I get:

 

Object reference not set to an instance of an object.

 

0
Nencho
Telerik team
answered on 01 Jul 2016, 08:39 AM
Hello Marc,

I tried to replicate the issue that you've described, but to no avail - the previously demonstrated implementation in this thread works properly with dynamically created steps.

In the attachment you can find the sample example, that was used for local tests proposes. You can give it a try at your end and let us know if you have any questions.

Hope this would help.

Regards,
Nencho
Telerik
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 01 Jul 2016, 08:52 AM

I set the AddHandler of the buttons now on WizardStepCreated and it is working.

 

My bad

Tags
Wizard
Asked by
Binary
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or