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

How to delete a wizard steps based on index

0 Answers 41 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Saif
Top achievements
Rank 1
Saif asked on 01 Apr 2019, 12:54 PM

I have created a dynamic wizard steps. I want to delete the wizardsteps based on index. How can do this.

Ascx Page:

<telerik:RadButton runat="server" RenderMode="Lightweight" ID="rbtnRemoveSteps" Text="Remove Steps" AutoPostBack="false" OnClientClicked="RemoveSteps" ></telerik:RadButton>

 

Ascx Script:

function RemoveSteps() {
   var ajaxmanager = null;
   ajaxmanager = $find('<%=RadAjaxManager.GetCurrent(this.Page).ClientID%>');
   ajaxmanager.ajaxRequest('DeleteSteps');
}

Parent Page:

case "DeleteSteps":
    if (UIControlsWizard.WizardSteps.Count >=0)
    {
         int activeIndex = UIControlsWizard.ActiveStepIndex;
         UIControlsWizard.WizardSteps.RemoveAt(activeIndex);
    }
    break;

 

No answers yet. Maybe you can help?

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