Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

  1. #1

    Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

    Dear All,

    I am new to Coolite. I getting following error Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

    Please find the belwo code

    <ext:ViewPort runat="server">
        <Body>
            <ext:RowLayout runat="server" Split="true">
                <ext:LayoutRow RowHeight="0.25">
                    <ext:Panel ID="Panel1" runat="server" Title="Initial Height = 25%" />
                </ext:LayoutRow>
                   
                <ext:LayoutRow>
                <ext:BorderLayout ID="test" runat="server">
                    <West MinWidth="225" MaxWidth="400" Split="true" Collapsible="true">
                        <ext:Panel ID="Westpanel1" runat="server" Title="test" Width="225">
                            <body>
                             test
                            </body>
                        </ext:Panel>
                    </West>
                    <Center>
                    </Center>
                </ext:BorderLayout>
        </ext:LayoutRow>
       
        <ext:LayoutRow RowHeight="0.75">
            <ext:Panel ID="Panel3" runat="server" Title="Initial Height = 75%" />
        </ext:LayoutRow>
            </ext:RowLayout>
        </Body>
    </ext:ViewPort>
    Please help me to reslove this

    Regards
    Prakash

  2. #2

    RE: Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

    Hi Prakash,

    Inside your second <ext:LayoutRow> must be a Panel type component, such as <ext:Panel>. You can not directly add the <ext:BorderLayout> inside the <ext:LayoutRow>.

    Add an <ext:Panel>, then add the <ext:BorderLayout> to the Panel's <Body>.

    Hope this helps.

    Geoffrey McGill
    Founder
  3. #3

    RE: Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

    Hi Geoffrey,

    Thanks for the support . It is working fine. But the border layout Layout1 which is in Panel2 is not visible.
    Please find below the code.

    <ext:ViewPort runat="server">
    <Body>
    <ext:RowLayout runat="server" >
    <ext:LayoutRow RowHeight="0.25">
    <ext:Panel ID="Panel1" runat="server" TitleCollapse="false" Title="Initial Height = 25%" />
    </ext:LayoutRow>

    <ext:LayoutRow>
    <ext:Panel ID="Panel2" runat="server" Title="Actual">
    <Body>
    <ext:BorderLayout ID="Layout1" runat="server" AutoRender="true">
    <West MinWidth="225" MaxWidth="400" Split="true" Collapsible="true">
    <ext:Panel ID="Westpanel1" runat="server" Title="test" Width="225">
    <body>
    West
    </body>
    </ext:Panel>
    </West>
    <Center>
    </Center>
    </ext:BorderLayout>
    </Body>
    </ext:Panel>
    </ext:LayoutRow>

    Regards
    Prakash
  4. #4

    RE: Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

    Hi,

    You have to provide RowHeight for the LayoutRow or Height for Panel2
  5. #5

    RE: Parent for Layout Control (test) must be a Coolite Container Control, such as Panel, TabPanel, Window, ViewPort, etc.

    Hi Vladimir,
    Thanks for your support.
    It is working fine.
    Can I use the same code for the Pages with inheritance from the Master page.
    I have tried it but the controls are not showing . Please find the below code
    <%@ Page Language="C#" MasterPageFile="~/MasterPages/RaidEmolyee.master" AutoEventWireup="true"
    CodeFile="NewListGlobalInbox.aspx.cs" Inherits="Home" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <table id="tblMain" cellpadding="0" cellspacing="0" style="width: 100%">
    <tr>
    <td colspan="4">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <ext:ViewPort ID="VwMainPort" runat="server">
    <Body>
    <ext:RowLayout ID="RMainLayour" runat="server" Split="true">
    <ext:LayoutRow RowHeight="0.05">
    <ext:Panel ID="Panel1" runat="server"/>
    </ext:LayoutRow>
    <ext:LayoutRow RowHeight="0.75">
    <ext:Panel ID="pnl1" runat="server">
    <Body>
    <ext:BorderLayout ID="BLayout1" runat="server" AutoShow="true">
    <West MinWidth="225" MaxWidth="400" Split="true" Collapsible="true">
    <ext:Panel ID="NavigationPanel" runat="server" Title="Naviagation" Width="225">
    <Body>
    West
    </Body>
    </ext:Panel>
    </West>
    <Center>
    <ext:TabPanel ID="TabPanel1" runat="server" Title="West" Width="225">
    Center
    </ext:TabPanel>
    </Center>
    </ext:BorderLayout>
    </Body>
    </ext:Panel>
    </ext:LayoutRow>
    </ext:RowLayout>
    </Body>
    </ext:ViewPort>
    </td>
    </tr>
    </table>
    </asp:Content>

    Please help me in this.
    Regards
    Prakash

Similar Threads

  1. Replies: 6
    Last Post: Dec 07, 2011, 12:55 PM
  2. [CLOSED] Open window in a parent container
    By edigital in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 18, 2011, 5:21 PM
  3. Replies: 9
    Last Post: May 10, 2010, 5:56 AM
  4. Grid rendering within Viewport>TabPanel control
    By Marius.Serban in forum 1.x Help
    Replies: 6
    Last Post: Jan 24, 2009, 11:57 AM
  5. Replies: 4
    Last Post: Dec 16, 2008, 3:55 PM

Posting Permissions