[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 6:56 AM. Reason: [CLOSED]
  2. #2

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

    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">
            <ext:VBoxLayoutConfig Align="Stretch" />
            <ext:Container ID="Container1" runat="server" Flex="1" Layout="HBoxLayout" Height="40">
                    <ext:HBoxLayoutConfig Align="Stretch" />
                    <ext:Panel runat="server" ID="pnlLookup" Height="40" Border="False" Flex="6">
                            <ucCont:Contact ID="ucContact" runat="server" FieldLabelText="SelectAddress" />
                    <ext:Panel runat="server" ID="pnlExternalLookup" Height="40" Border="False" Flex="0">
                            <ext:Button runat="server" ID="cmdExternalLookup" Icon="Add">
                                    <Click OnEvent="ShowAddresses" />
            <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">
                    <ext:HBoxLayoutConfig Align="Stretch" />
                    <ext:TextField ID="txtCountry" Flex="1" runat="server" FieldLabel="Country" Cls="addressTextbox" />
                    <ext:TextField ID="txtZIP" Flex="1" runat="server" FieldLabel="ZIP" Cls="addressTextbox" />
            <ext:TextField ID="txtCity" runat="server" FieldLabel="City" Cls="addressTextbox" />
            <ext:TextField ID="txtReferece" runat="server" FieldLabel="Refrence" Cls="addressTextbox" />
    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%">
            <ext:ComboBox ID="cboAddress" runat="server" DisplayField="DisplayField" ValueField="_Id" TypeAhead="false" LoadingText="<%$ Resources:CUSTRocheImport, Searching %>"  HideTrigger="true" ItemSelector="div.search-item"
                    <ext:Store ID="storeAddress" runat="server" AutoLoad="false">
                            <ext:HttpProxy Method="POST" Url="Contacts.ashx" />
                            <ext:JsonReader Root="contacts" TotalProperty="total" IDProperty="_Id">
                                    <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" />
                    <Select OnEvent="AddressSelected">
                <Template ID="Template1" runat="server">
                        <tpl for=".">
                            <div class="search-item">
                                {SalutationName} {FirstName} <h3>{Name}</h3><br/>              
                                <div class="search-subitem">
                                    <table style="width: 100%">
                                            <td style="width: 20%">Abt.</td>
                                            <td>Bau / Raum</td>
                                            <td style="width: 20%">{Department}</td>
                                            <td>{Building} {Room}</td>
  8. #8
  9. #9
    Thank you.


    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, 1:55 PM
  2. Replies: 5
    Last Post: Nov 03, 2011, 3:39 AM
  3. Replies: 2
    Last Post: Apr 15, 2010, 6:33 AM
  4. Replies: 3
    Last Post: Jul 22, 2009, 12:58 PM
  5. Replies: 0
    Last Post: May 27, 2009, 7:50 AM

Posting Permissions