[CLOSED] Problem with a UserControl on a collapsed Panel - Controls contenet

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Problem with a UserControl on a collapsed Panel - Controls contenet

    Last edited by Daniil; Sep 12, 2012 at 5:56 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please wrap the pnlWizard Panel in an <ext:FitLayout> control.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Please wrap the pnlWizard Panel in an <ext:FitLayout> control.

    Didn't help - Control is still empty :-/
  4. #4
    Could you provide a full sample to reproduce? Please simplify as much as you can.
  5. #5
  6. #6
    Could you make it runnable, please?

    I see you register three user control, but provide the one only. I am even not sure where I should use that user control:)

    Also please remove these things
    <%$ Resources:CUSTRocheImport, Consignee %>
    It will causes exceptions on our side.
  7. #7
    Here's the Code for the 'uc1:AddressSelector'

    <%@ Control Language="vb" AutoEventWireup="false" CodeBehind="AddressSelector.ascx.vb" Inherits="CUST.Roche.Import.View.AddressSelector" %>
    <%@ Register TagPrefix="ucCont" TagName="Contact" Src="~/View/rocheimport/userControls/Address/Contacts.ascx" %>
    <link href="~/View/RocheImport/css/Main.css" rel="stylesheet" type="text/css" />
    <ext:Panel runat="server" ID="pnlContainer" Layout="VBoxLayout" Width="460" Height="270" Border="False" Padding="20">
        <LayoutConfig>
            <ext:VBoxLayoutConfig Align="Stretch" />
        </LayoutConfig>
        <Items>
            <ext:Container ID="Container1" runat="server" Flex="1" Layout="HBoxLayout" Height="40">
                <LayoutConfig>
                    <ext:HBoxLayoutConfig Align="Stretch" />
                </LayoutConfig>
                <Items>
                    <ext:Panel runat="server" ID="pnlLookup" Height="40" Border="False" Flex="6">
                        <Content>
                            <ucCont:Contact ID="ucContact" runat="server" FieldLabelText="SelectAddress" />
                        </Content>
                    </ext:Panel>
                    <ext:Panel runat="server" ID="pnlExternalLookup" Height="40" Border="False" Flex="0">
                        <Content>
                            <ext:Button runat="server" ID="cmdExternalLookup" Icon="Add">
                                <DirectEvents>
                                    <Click OnEvent="ShowAddresses" />
                                </DirectEvents>
                            </ext:Button>
                        </Content>
                    </ext:Panel>
                </Items>
            </ext:Container>
            <ext:TextField ID="txtName" runat="server" FieldLabel="Name" Cls="addressTextbox" />
            <ext:TextField ID="txtZusatz1" runat="server" FieldLabel="Zusatz1" Cls="addressTextbox" />
            <ext:TextField ID="txtZusatz2" runat="server" FieldLabel="Zusatz2" Cls="addressTextbox" />
            <ext:TextField ID="txtStreet" runat="server" FieldLabel="Street" Cls="addressTextbox" />
            <ext:Container ID="contCountryZip" runat="server" Flex="1" Layout="HBoxLayout" Height="40">
                <LayoutConfig>
                    <ext:HBoxLayoutConfig Align="Stretch" />
                </LayoutConfig>
                <Items>
                    <ext:TextField ID="txtCountry" Flex="1" runat="server" FieldLabel="Country" Cls="addressTextbox" />
                    <ext:TextField ID="txtZIP" Flex="1" runat="server" FieldLabel="ZIP" Cls="addressTextbox" />
                </Items>
            </ext:Container>
            <ext:TextField ID="txtCity" runat="server" FieldLabel="City" Cls="addressTextbox" />
            <ext:TextField ID="txtReferece" runat="server" FieldLabel="Refrence" Cls="addressTextbox" />
        </Items>
    </ext:Panel>
    And this is referenced within this Control

    <%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Contacts.ascx.vb" Inherits="CUST.Roche.Import.View.Contacts" %>
    <link href="~/View/RocheImport/css/Main.css" rel="stylesheet" type="text/css" />
    <ext:Panel ID="pnlOuter" runat="server" Border="False"  AutoHeight="True" Layout="AnchorLayout" DefaultAnchor="75%">
        <Items>
            <ext:ComboBox ID="cboAddress" runat="server" DisplayField="DisplayField" ValueField="_Id" TypeAhead="false" LoadingText="<%$ Resources:CUSTRocheImport, Searching %>"  HideTrigger="true" ItemSelector="div.search-item"
                MinChars="1">
                <Store>
                    <ext:Store ID="storeAddress" runat="server" AutoLoad="false">
                        <Proxy>
                            <ext:HttpProxy Method="POST" Url="Contacts.ashx" />
                        </Proxy>
                        <Reader>
                            <ext:JsonReader Root="contacts" TotalProperty="total" IDProperty="_Id">
                                <Fields>
                                    <ext:RecordField Name="_Id" />
                                    <ext:RecordField Name="IsInternal" Type="Boolean" />
                                    <ext:RecordField Name="IsExternal" Type="Boolean" />
                                    <ext:RecordField Name="DisplayField" />
                                    <ext:RecordField Name="Name" />
                                    <ext:RecordField Name="FirstName" />
                                    <ext:RecordField Name="Salutation" />
                                    <ext:RecordField Name="Department" />
                                    <ext:RecordField Name="Room" />
                                    <ext:RecordField Name="Building" />
                                    <ext:RecordField Name="Phone" />
                                    <ext:RecordField Name="City" />
                                    <ext:RecordField Name="Street" />
                                    <ext:RecordField Name="ZIP" />
                                    <ext:RecordField Name="Country" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <DirectEvents>
                    <Select OnEvent="AddressSelected">
                    </Select>
                </DirectEvents>
                <Template ID="Template1" runat="server">
                    <Html>
                        <tpl for=".">
                            <div class="search-item">
                                {SalutationName} {FirstName} <h3>{Name}</h3><br/>              
                                <div class="search-subitem">
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="width: 20%">Abt.</td>
                                            <td>Bau / Raum</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 20%">{Department}</td>
                                            <td>{Building} {Room}</td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            </tpl>
                    </Html>
                </Template>
            </ext:ComboBox>
        </Items>
    </ext:Panel>
  8. #8
  9. #9
    Thank you.

    But:

    1. The Content Page registers two user controls: "DeclarationList" and "DeclWiz".

    2. The user control that you call just "The Control" (by the way, is it "DeclarationList" or"DeclWiz"?) registers "AddressSelector" and you just provided it.

    3. The AddressSelector registers the Contact and, but I have no such control.

    4. Summary: there are the four user controls, but you provided just two ones.

    So, unfortunately, your sample is not runnable yet.

    Also I think that it can be extremely simplified, but will still reproduce the problem. Probably, only a single page (without a master page) and a single user control are required to reproduce the problem.

    Please simplify. The following technique should help.
    How to prepare a sample

    Also please take some time to investigate this guide.
    Forum Guidelines For Posting New Topics
  10. #10
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: Dec 07, 2011, 12:55 PM
  2. Replies: 5
    Last Post: Nov 03, 2011, 2:39 AM
  3. Replies: 2
    Last Post: Apr 15, 2010, 5:33 AM
  4. Replies: 3
    Last Post: Jul 22, 2009, 11:58 AM
  5. Replies: 0
    Last Post: May 27, 2009, 6:50 AM

Posting Permissions