Not working in Multipage

3 posts, 0 answers
  1. Tony Casey
    Tony Casey avatar
    9 posts
    Member since:
    Jan 2010

    Posted 04 Mar 2010 Link to this post

    Hi,

    I am having trouble with the FormDecorator in a multipage setup.

    The input boxes come out as an elongated field with strange grey boxes on each end.

    Using the same setup, without the multipage, everything works fine.

    Here is my code...

    <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeBehind="CompanySummary.aspx.cs" Inherits="MaxApplication.Admin.CompanySummary" %> 
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
    <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">  
        <h1> 
        <asp:Label ID="lblCompanyName" runat="server" Text=""></asp:Label> 
    </h1> 
     
        <asp:SqlDataSource ID="SqlDataSourceCompany" runat="server"   
            ConnectionString="<%$ ConnectionStrings:MaxSQLConnectionString %>"   
              
            SelectCommand="SELECT * FROM [company] WHERE ([Comp_CompanyId] = @Comp_CompanyId)"   
            ConflictDetection="CompareAllValues"   
            DeleteCommand="DELETE FROM [company] WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))"   
            InsertCommand="INSERT INTO [company] ([Comp_Name], [Comp_UserId], [Comp_Deleted], [Comp_CreatedDate], [Comp_UpdatedDate], [Comp_Type], [Comp_PhoneNumber], [Comp_Address1], [Comp_Address2], [Comp_Address3], [Comp_Address4], [Comp_City], [Comp_Postcode], [Comp_Country], [Comp_EmailAddress]) VALUES (@Comp_Name, @Comp_UserId, @Comp_Deleted, @Comp_CreatedDate, @Comp_UpdatedDate, @Comp_Type, @Comp_PhoneNumber, @Comp_Address1, @Comp_Address2, @Comp_Address3, @Comp_Address4, @Comp_City, @Comp_Postcode, @Comp_Country, @Comp_EmailAddress)"   
            OldValuesParameterFormatString="original_{0}"   
            UpdateCommand="UPDATE [company] SET [Comp_Name] = @Comp_Name, [Comp_UserId] = @Comp_UserId, [Comp_Deleted] = @Comp_Deleted, [Comp_CreatedDate] = @Comp_CreatedDate, [Comp_UpdatedDate] = @Comp_UpdatedDate, [Comp_Type] = @Comp_Type, [Comp_PhoneNumber] = @Comp_PhoneNumber, [Comp_Address1] = @Comp_Address1, [Comp_Address2] = @Comp_Address2, [Comp_Address3] = @Comp_Address3, [Comp_Address4] = @Comp_Address4, [Comp_City] = @Comp_City, [Comp_Postcode] = @Comp_Postcode, [Comp_Country] = @Comp_Country, [Comp_EmailAddress] = @Comp_EmailAddress WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))">  
            <SelectParameters> 
                <asp:QueryStringParameter Name="Comp_CompanyId"   
                    QueryStringField="Comp_CompanyId" Type="Int32" /> 
            </SelectParameters> 
            <DeleteParameters> 
                <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> 
                <asp:Parameter Name="original_Comp_Name" Type="String" /> 
                <asp:Parameter Name="original_Comp_UserId" Type="String" /> 
                <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> 
                <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> 
                <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> 
                <asp:Parameter Name="original_Comp_Type" Type="String" /> 
                <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address1" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address2" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address3" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address4" Type="String" /> 
                <asp:Parameter Name="original_Comp_City" Type="String" /> 
                <asp:Parameter Name="original_Comp_Postcode" Type="String" /> 
                <asp:Parameter Name="original_Comp_Country" Type="String" /> 
                <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> 
            </DeleteParameters> 
            <UpdateParameters> 
                <asp:Parameter Name="Comp_Name" Type="String" /> 
                <asp:Parameter Name="Comp_UserId" Type="String" /> 
                <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> 
                <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> 
                <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> 
                <asp:Parameter Name="Comp_Type" Type="String" /> 
                <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> 
                <asp:Parameter Name="Comp_Address1" Type="String" /> 
                <asp:Parameter Name="Comp_Address2" Type="String" /> 
                <asp:Parameter Name="Comp_Address3" Type="String" /> 
                <asp:Parameter Name="Comp_Address4" Type="String" /> 
                <asp:Parameter Name="Comp_City" Type="String" /> 
                <asp:Parameter Name="Comp_Postcode" Type="String" /> 
                <asp:Parameter Name="Comp_Country" Type="String" /> 
                <asp:Parameter Name="Comp_EmailAddress" Type="String" /> 
                <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> 
                <asp:Parameter Name="original_Comp_Name" Type="String" /> 
                <asp:Parameter Name="original_Comp_UserId" Type="String" /> 
                <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> 
                <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> 
                <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> 
                <asp:Parameter Name="original_Comp_Type" Type="String" /> 
                <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address1" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address2" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address3" Type="String" /> 
                <asp:Parameter Name="original_Comp_Address4" Type="String" /> 
                <asp:Parameter Name="original_Comp_City" Type="String" /> 
                <asp:Parameter Name="original_Comp_Postcode" Type="String" /> 
                <asp:Parameter Name="original_Comp_Country" Type="String" /> 
                <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> 
            </UpdateParameters> 
            <InsertParameters> 
                <asp:Parameter Name="Comp_Name" Type="String" /> 
                <asp:Parameter Name="Comp_UserId" Type="String" /> 
                <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> 
                <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> 
                <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> 
                <asp:Parameter Name="Comp_Type" Type="String" /> 
                <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> 
                <asp:Parameter Name="Comp_Address1" Type="String" /> 
                <asp:Parameter Name="Comp_Address2" Type="String" /> 
                <asp:Parameter Name="Comp_Address3" Type="String" /> 
                <asp:Parameter Name="Comp_Address4" Type="String" /> 
                <asp:Parameter Name="Comp_City" Type="String" /> 
                <asp:Parameter Name="Comp_Postcode" Type="String" /> 
                <asp:Parameter Name="Comp_Country" Type="String" /> 
                <asp:Parameter Name="Comp_EmailAddress" Type="String" /> 
            </InsertParameters> 
        </asp:SqlDataSource> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server"  DecoratedControls="All"/>  
          
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"   
            Skin="Default">  
        </telerik:RadAjaxLoadingPanel> 
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
        </telerik:RadScriptManager> 
          
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px"   
            width="100%">  
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server"   
                MultiPageID="RadMultiPage1" SelectedIndex="0">  
                <Tabs> 
                    <telerik:RadTab runat="server" Text="Summary" Selected="True">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Jobs">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Invoices">  
                    </telerik:RadTab> 
                </Tabs> 
        </telerik:RadTabStrip> 
          
            <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0">  
                <telerik:RadPageView ID="RadPageView1" runat="server">  
                  
                  <div class="smallwindow">  
                  <h2>Summary</h2> 
                      
                      
                     <asp:FormView ID="FormView1" runat="server" DataKeyNames="Comp_CompanyId"   
            DataSourceID="SqlDataSourceCompany"   Width="100%" onitemcommand="FormView1_ItemCommand"   
                          oniteminserting="FormView1_ItemInserting" onload="FormView1_Load"   
                            onitemupdated="FormView1_ItemUpdated">  
            <EditItemTemplate> 
               <table style="width: 100%" cellpadding="2">  
                    <tr> 
                        <td > 
                            Name  
                            <br /> 
                            <asp:TextBox ID="Comp_NameTextBox" runat="server"   
                                Text='<%# Bind("Comp_Name") %>' /> 
                        </td> 
                        <td> 
                            Email<br /> 
                            <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server"   
                                Text='<%# Bind("Comp_EmailAddress") %>' /> 
                        </td> 
                        <td> 
                            Phone<br /> 
                            <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server"   
                                Text='<%# Bind("Comp_PhoneNumber") %>' /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            &nbsp;</td> 
                        <td> 
                            &nbsp;</td> 
                        <td> 
                            &nbsp;</td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Address1<br /> 
                            <asp:TextBox ID="Comp_Address1TextBox" runat="server"   
                                Text='<%# Bind("Comp_Address1") %>' /> 
                        </td> 
                        <td> 
                            Address 2<br /> 
                            <asp:TextBox ID="Comp_Address2TextBox" runat="server"   
                                Text='<%# Bind("Comp_Address2") %>' /> 
                        </td> 
                        <td> 
                            Address 3<br /> 
                            <asp:TextBox ID="Comp_Address3TextBox" runat="server"   
                                Text='<%# Bind("Comp_Address3") %>' /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            City<br /> 
                            <asp:TextBox ID="Comp_CityTextBox" runat="server"   
                                Text='<%# Bind("Comp_City") %>' /> 
                        </td> 
                        <td> 
                            Post Code<br /> 
                            <asp:TextBox ID="Comp_PostcodeTextBox" runat="server"   
                                Text='<%# Bind("Comp_Postcode") %>' /> 
                        </td> 
                        <td> 
                            &nbsp;</td> 
                    </tr> 
                </table> 
                <asp:HiddenField ID="Comp_Type" runat="server"   
                    Value='<%# Eval("Comp_Type") %>' /> 
                <br /> 
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"   
                    CommandName="Update" Text="Update" /> 
                &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"   
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" /> 
            </EditItemTemplate> 
            <InsertItemTemplate> 
             
                 
                <table style="width: 100%" cellpadding="2">  
                    <tr> 
                        <td > 
                            Name  
                            <br /> 
                            <asp:TextBox ID="Comp_NameTextBox" runat="server"   
                                Text='<%# Bind("Comp_Name") %>' /> 
                        </td> 
                        <td> 
                            Email<br /> 
                            <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server"   
                                Text='<%# Bind("Comp_EmailAddress") %>' /> 
                        </td> 
                        <td> 
                            Phone<br /> 
                            <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server"   
                                Text='<%# Bind("Comp_PhoneNumber") %>' /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            &nbsp;</td> 
                        <td> 
                            &nbsp;</td> 
                        <td> 
                            &nbsp;</td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Address1<br /> 
                            <asp:TextBox ID="Comp_Address1TextBox" runat="server"   
                                Text='<%# Bind("Comp_Address1") %>' /> 
                        </td> 
                        <td> 
                            Address 2<br /> 
                            <asp:TextBox ID="Comp_Address2TextBox" runat="server"   
                                Text='<%# Bind("Comp_Address2") %>' /> 
                        </td> 
                        <td> 
                            Address 3<br /> 
                            <asp:TextBox ID="Comp_Address3TextBox" runat="server"   
                                Text='<%# Bind("Comp_Address3") %>' /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            City<br /> 
                            <asp:TextBox ID="Comp_CityTextBox" runat="server"   
                                Text='<%# Bind("Comp_City") %>' /> 
                        </td> 
                        <td> 
                            Post Code<br /> 
                            <asp:TextBox ID="Comp_PostcodeTextBox" runat="server"   
                                Text='<%# Bind("Comp_Postcode") %>' /> 
                        </td> 
                        <td> 
                            &nbsp;</td> 
                    </tr> 
                </table> 
                <asp:HiddenField ID="Comp_Type" runat="server"   
                    Value='<%# Eval("Comp_Type") %>' /> 
                <br /> 
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"   
                    CommandName="Insert" Text="Insert" /> 
                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"   
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" /> 
            </InsertItemTemplate> 
            <ItemTemplate> 
              
     
            <table style="width: 100%" cellpadding="2">  
                    <tr> 
                        <td > 
                            Name  
                            <br /> 
                           <asp:Label ID="Comp_NameLabel" runat="server" Text='<%# Bind("Comp_Name") %>' /> 
                <br /> 
                        </td> 
                        <td> 
                            Email<br /> 
                            <asp:Label ID="Comp_EmailAddressLabel" runat="server"   
                    Text='<%# Bind("Comp_EmailAddress") %>' /> 
                        </td> 
                        <td> 
                            Phone<br /> 
                            <asp:Label ID="Comp_PhoneNumberLabel" runat="server"   
                    Text='<%# Bind("Comp_PhoneNumber") %>' /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            &nbsp;</td> 
                        <td> 
                            &nbsp;</td> 
                        <td> 
                            &nbsp;</td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Address1<br /> 
                            <asp:Label ID="Comp_Address1Label" runat="server"   
                    Text='<%# Bind("Comp_Address1") %>' /> 
                        </td> 
                        <td> 
                            Address 2<br /> 
                            <asp:Label ID="Comp_Address2Label" runat="server"   
                    Text='<%# Bind("Comp_Address2") %>' /> 
                        </td> 
                        <td> 
                            Address 3<br /> 
                            <asp:Label ID="Comp_Address3Label" runat="server"   
                    Text='<%# Bind("Comp_Address3") %>' /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            City<br /> 
                            <asp:Label ID="Comp_CityLabel" runat="server" Text='<%# Bind("Comp_City") %>' /> 
                        </td> 
                        <td> 
                            Post Code<br /> 
                            <asp:Label ID="Comp_PostcodeLabel" runat="server"   
                    Text='<%# Bind("Comp_Postcode") %>' /> 
                        </td> 
                        <td> 
                            &nbsp;</td> 
                    </tr> 
                </table> 
                      
             <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False"   
                    CommandName="Edit" Text="Edit" /> 
                  
            </ItemTemplate> 
        </asp:FormView> 
                      
                  </div> 
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView2" runat="server">  
                <div class="smallwindow"><h2>Jobs</h2></div>  
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView3" runat="server">  
                <div class="smallwindow"><h2>Invoices</h2></div>  
                </telerik:RadPageView> 
            </telerik:RadMultiPage> 
              
        </telerik:RadAjaxPanel> 
     
    </asp:Content> 
     
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 09 Mar 2010 Link to this post

    Hi Tony,

    I ran your code (I've had to remove the databound text as I don't have your database) but everything is working as expected - I attached a screenshot of the result on my side.
    The problem that you describe could be related to a global CSS that interferes with our controls, but without being able to reproduce the problem locally, I cannot say for sure. That is why, if you still experience this problem, I suggest to open a support ticket and to send us a small sample project where this issue could be reproduced. We will check it right away and do our best to help.

    Sincerely yours,
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tony Casey
    Tony Casey avatar
    9 posts
    Member since:
    Jan 2010

    Posted 09 Mar 2010 Link to this post

    Thanks a lot for the response.

    When I took the div with class "smallwindow" and placed it above the MulitPageView tag it worked fine.

    Probably worked for you ok because you would not have a style for that div.

    Thanks
Back to Top