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;