Custom radconfirm in ASP.NET Wizard

3 posts, 0 answers
  1. Pei Chen
    Pei Chen avatar
    12 posts
    Member since:
    Jan 2010

    Posted 02 Mar 2010 Link to this post


    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">  
                 <asp:WizardStep ID="wzs1" StepType="Start" Title="Step 1" runat="server">  
                          <asp:dropdownlist runat="server" id="ddlDeviceType" />  
                <asp:WizardStep ID="wzs2" StepType="Step" Title="Step 2" runat="server">  
                           Step 2  
    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. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 05 Mar 2010 Link to this post

    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.
  3. Pei Chen
    Pei Chen avatar
    12 posts
    Member since:
    Jan 2010

    Posted 05 Mar 2010 Link to this post

    I spend whole day trying to make it work but you have confirmed my theory.  Thank you for your reply, Georgi!

Back to Top