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

RadButton in Wizard

3 Answers 97 Views
Button
This is a migrated thread and some comments may be shown as answers.
Daniela
Top achievements
Rank 1
Daniela asked on 16 May 2011, 10:06 AM

hello,

we use the telerik radbutton in a Wizard-Control from ASP.Net
The first step in the Wizard-Control is without error.
In the second step we get a JavaScript-Error with the message "undefined is null or no object".

How we can use the radbutton in a Wizard-Control?


<asp:Wizard ID="Wizard" runat="server" CancelButtonText="Cancel" StepNextButtonText="Next" StartNextButtonText="Next" StepPreviousButtonText="Previous" OnNextButtonClick="OnNextButtonClick" DisplaySideBar="false" Width="100%">
  <LayoutTemplate>
    <asp:PlaceHolder ID="WizardStepPlaceHolder" runat="server" />
    <br />
    <asp:PlaceHolder ID="NavigationPlaceHolder" runat="server" />
  </LayoutTemplate>
  <WizardSteps>
    <asp:TemplatedWizardStep ID="WizardStep1" runat="server" Title="Step 1" StepType="Start">
      <ContentTemplate>
        <affililist:AddStep1Control ID="StepControl" runat="server" ShowOwnSaveButton="false" EditMode="New" DefaultSuccessor="2" />
      </ContentTemplate>
    </asp:TemplatedWizardStep>
    <asp:TemplatedWizardStep ID="WizardStep2" runat="server" Title="Step 2" StepType="Step">
      <ContentTemplate>
        <affililist:AddStep2Control ID="StepControl" runat="server" ShowOwnSaveButton="false" EditMode="New" DefaultSuccessor="3" />
      </ContentTemplate>
    </asp:TemplatedWizardStep>
    <asp:TemplatedWizardStep ID="WizardStep3" runat="server" Title="Step 3" StepType="Finish">
      <ContentTemplate>
        <affililist:AddStep3Control ID="StepControl" runat="server" ShowOwnSaveButton="false" EditMode="New" />
      </ContentTemplate>
    </asp:TemplatedWizardStep>
  </WizardSteps>
  <StartNavigationTemplate>
    <telerik:RadButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Weiter" CausesValidation="False"></telerik:RadButton>
  </StartNavigationTemplate>
  <StepNavigationTemplate>
    <telerik:RadButton ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious" Text="Zurück"></telerik:RadButton>
    <telerik:RadButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Weiter"></telerik:RadButton>
  </StepNavigationTemplate>
  <FinishNavigationTemplate>
    <telerik:RadButton ID="FinishPreviousButton" CausesValidation="False" CommandName="MovePrevious" Text="Zurück" runat="server"></telerik:RadButton>
    <telerik:RadButton ID="FinishButton" CommandName="MoveComplete" Text="Anlegen" runat="server"></telerik:RadButton>
  </FinishNavigationTemplate>
</asp:Wizard>

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 18 May 2011, 12:44 PM
Hi Daniela,

Thank you for the sample code! I run it locally but didn't get any errors. The full source code of my project is pasted below. Could you please provide a fully working sample code that shows the issue? Once we are able to reproduce the problem, we can provide an adequate solution.
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Wizard ID="Wizard" runat="server" CancelButtonText="Cancel" StepNextButtonText="Next"
        StartNextButtonText="Next" StepPreviousButtonText="Previous" DisplaySideBar="false"
        Width="100%">
        <LayoutTemplate>
            <asp:PlaceHolder ID="WizardStepPlaceHolder" runat="server" />
            <br />
            <asp:PlaceHolder ID="NavigationPlaceHolder" runat="server" />
        </LayoutTemplate>
        <WizardSteps>
            <asp:TemplatedWizardStep ID="WizardStep1" runat="server" Title="Step 1" StepType="Start">
                <ContentTemplate>
                    1
                </ContentTemplate>
            </asp:TemplatedWizardStep>
            <asp:TemplatedWizardStep ID="WizardStep2" runat="server" Title="Step 2" StepType="Step">
                <ContentTemplate>
                    2
                </ContentTemplate>
            </asp:TemplatedWizardStep>
            <asp:TemplatedWizardStep ID="WizardStep3" runat="server" Title="Step 3" StepType="Finish">
                <ContentTemplate>
                    3
                </ContentTemplate>
            </asp:TemplatedWizardStep>
        </WizardSteps>
        <StartNavigationTemplate>
            <telerik:RadButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Weiter"
                CausesValidation="False">
            </telerik:RadButton>
        </StartNavigationTemplate>
        <StepNavigationTemplate>
            <telerik:RadButton ID="StepPreviousButton" runat="server" CausesValidation="False"
                CommandName="MovePrevious" Text="Zurück">
            </telerik:RadButton>
            <telerik:RadButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Weiter">
            </telerik:RadButton>
        </StepNavigationTemplate>
        <FinishNavigationTemplate>
            <telerik:RadButton ID="FinishPreviousButton" CausesValidation="False" CommandName="MovePrevious"
                Text="Zurück" runat="server">
            </telerik:RadButton>
            <telerik:RadButton ID="FinishButton" CommandName="MoveComplete" Text="Anlegen" runat="server">
            </telerik:RadButton>
        </FinishNavigationTemplate>
    </asp:Wizard>
    </form>
</body>
</html>

Kind regards,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Daniela
Top achievements
Rank 1
answered on 31 May 2011, 07:29 AM

 

Hello,
thank you for the answer.
I have created an example.
When i push the button (next) then i get a javascript mistake.
We have this problem when we  enclose the placeholder with a ajax pannel.

how we can send the example to you?
The the file type "zip" is not allowed in the attachment.

Best regards
Daniela Fischer

Masterpage:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication.SiteMaster" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form runat="server">
      <telerik:RadScriptManager ID="RSM" runat="server" />
      <telerik:RadAjaxPanel ID="RAP_middle_m" LoadingPanelID="RALP_middle_m" runat="server">
        <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
      </telerik:RadAjaxPanel>
    </form>
</body>
</html>

Page:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WizardForm.aspx.cs" Inherits="WebApplication.WizardForm" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Wizard ID="Wizard1" runat="server" CancelButtonText="Cancel" StepNextButtonText="Next"
        StartNextButtonText="Next" StepPreviousButtonText="Previous" DisplaySideBar="false"
        Width="100%">
        <LayoutTemplate>
            <asp:PlaceHolder ID="WizardStepPlaceHolder" runat="server" />
            <br />
            <asp:PlaceHolder ID="NavigationPlaceHolder" runat="server" />
        </LayoutTemplate>
        <WizardSteps>
            <asp:TemplatedWizardStep ID="TemplatedWizardStep1" runat="server" Title="Step 1" StepType="Start">
                <ContentTemplate>
                    1
                </ContentTemplate>
            </asp:TemplatedWizardStep>
            <asp:TemplatedWizardStep ID="TemplatedWizardStep2" runat="server" Title="Step 2" StepType="Step">
                <ContentTemplate>
                    2
                </ContentTemplate>
            </asp:TemplatedWizardStep>
            <asp:TemplatedWizardStep ID="TemplatedWizardStep3" runat="server" Title="Step 3" StepType="Finish">
                <ContentTemplate>
                    3
                </ContentTemplate>
            </asp:TemplatedWizardStep>
        </WizardSteps>
        <StartNavigationTemplate>
            <telerik:RadButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Weiter"
                CausesValidation="False">
            </telerik:RadButton>
        </StartNavigationTemplate>
        <StepNavigationTemplate>
            <telerik:RadButton ID="StepPreviousButton" runat="server" CausesValidation="False"
                CommandName="MovePrevious" Text="Zurück">
            </telerik:RadButton>
            <telerik:RadButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Weiter">
            </telerik:RadButton>
        </StepNavigationTemplate>
        <FinishNavigationTemplate>
            <telerik:RadButton ID="FinishPreviousButton" CausesValidation="False" CommandName="MovePrevious"
                Text="Zurück" runat="server">
            </telerik:RadButton>
            <telerik:RadButton ID="FinishButton" CommandName="MoveComplete" Text="Anlegen" runat="server">
            </telerik:RadButton>
        </FinishNavigationTemplate>
    </asp:Wizard>
</asp:Content>
0
Radoslav
Telerik team
answered on 02 Jun 2011, 09:04 AM
Hi Daniela,

I verified that the described issue exists in the current version of the controls. Our developers are aware and they will start working on the resolution of this issue. I will notify you as soon as I have more information on this matter. Additionally as a small token of gratitude for your involvement I have updated your Telerik points.

Best wishes,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Button
Asked by
Daniela
Top achievements
Rank 1
Answers by
Pero
Telerik team
Daniela
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or