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

Custom radconfirm in ASP.NET Wizard

2 Answers 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Pei Chen
Top achievements
Rank 1
Pei Chen asked on 02 Mar 2010, 08:48 PM
Hi,

I have an ASP.NET Wizard.  On the first screen, when user select a specific dropdownlist value, I want to put a custom Telerik radconfirm before it goes to next wizard step.  I can't get this thing to work.  Can someone please help me?  Thank you.

 <asp:Wizard ID="wzdJob" runat="server" ActiveStepIndex="0"                          
    DisplayCancelButton="true" Height="250px" Width="550px">  
        <WizardSteps>  
             <asp:WizardStep ID="wzs1" StepType="Start" Title="Step 1" runat="server">  
                      <asp:dropdownlist runat="server" id="ddlDeviceType" />  
             </asp:WizardStep>  
            <asp:WizardStep ID="wzs2" StepType="Step" Title="Step 2" runat="server">  
                       Step 2  
             </asp:WizardStep>  
      </WizardSteps>  
        
</asp:Wizard>  
          
Private Sub ddlDeviceType_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs) Handles ddlDeviceType.SelectedIndexChanged  
 
       If ddlDeviceType.SelectedValue = "SpecificValue" Then 
            Dim nextbtn As Button  
 
            nextbtn = wzdJob.FindControl("StartNavigationTemplateContainerID").FindControl("StartNextButton")  
 
            nextbtn.OnClientClick = "radconfirm('** Warning Message, proceed? **', CallBackFn, 400, 100);" 
 
        End If 
 
 
    End Sub 
 function CallBackFn(args) {  
 
 
            if (args == true) {  
                //Move to Wizard Step 2             
            } else {  
                //Do nothing  
            }  
              
             
        
        } 

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Mar 2010, 12:19 PM
Hello Pei,

I don't think that radconfirm() can be used in directly in such scenario - as noted on our site and in the documentation, unlike the standard browser's popups (confirm, prompt, alert), radconfirm, radprompt and radalert cannot block the execution thread as this is something that cannot be done with JavaScript and radconfirm cannot be used in "return confirm()" scenarios. This being said, I would recommend using the standard confirmation dialog - for a sample implementation you could check this article.

Kind regards,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Pei Chen
Top achievements
Rank 1
answered on 05 Mar 2010, 01:14 PM
I spend whole day trying to make it work but you have confirmed my theory.  Thank you for your reply, Georgi!

Pei
Tags
Window
Asked by
Pei Chen
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Pei Chen
Top achievements
Rank 1
Share this question
or