Hello Every one
This is my first post, In my Applictaion when i clicked on the Add button it will open a radwindow (New form), When i click on the save button it saves the record and back to the original Wizard Step, I would like to implement a logic in which when user clicked on save button it back to the original Wizard but skip that step and move to the next step Automatically, so user dont need to press the Next button,
Can any one please guide?
//**// for NewForm Start
function AddOrUpdateNewForm() {
var eventID = document.getElementById('<%= EventID.ClientID %>').value;
var oWnd = window.radopen("NewForm.aspx?IsAmend=true&EventID=" + eventID, "BtnNewForm");
oWnd.SetUrl(oWnd.GetUrl());
}
function OnNewFormClose(radWindow) {
var arg = radWindow.Argument;
if (!radWindow.Argument) {
}
else {
SelectSpecificDisableComboValue($find("<%=ABC.ClientID %>"), arg.ABC);
SetValue(arg.BRSTotalScore, $find("<%=Total.ClientID %>"));
MoveNextStep();
}
}
//**// for NewForm End
I would like to implement the logic when user is on ABC Step and open the DEF form through ABC Step (RadWindow) and when saved the record through Radwindow then user is redirected to the XYZ (Next Step), rather than coming back to ABC Step.
function MoveNextStep(sender, args) {
alert("MoveStep1");
var step = document.getElementById('<%=ActiveWizardStep.ClientID%>').innerText;
//alert(step1);
alert(step);
var command = args.get_command();
if (command == "1") {
var activeIndex = sender.get_activeIndex();
if (activeIndex > 0) {
sender.set_activeIndex(activeIndex + 1)
}
}
}