FormPanel doesn't display custom user control in content

  1. #1

    FormPanel doesn't display custom user control in content

    I need to use Content instead of Items into the FormPanel in order to place there div tags
    In this case uc:CustomerCategory2 doesn't show.
    <ext:TabPanel runat="server">
        <Items>
            <ext:Panel runat="server">
                <Items>
                    <ext:FormPanel runat="server">
                        <Content>
                            <div>
                                <ext:DateField  runat="server"></ext:DateField>
                                <div class="x-form-clear-left">
                                </div>
                            </div>
                            <div>
                                <ext:TextField runat="server" />
                                <div class="x-form-clear-left">
                                </div>
                            </div>
                            <div class="chksBlock">
                                <uc:CustomerCategory2 runat="server" ID="CustomerCategories2Uc" />
                                <div class="x-form-clear-left">
                                </div>
                            </div>
                            <div>
                                <ext:TextArea runat="server"  />
                                <div class="x-form-clear-left">
                                </div>
                            </div>
                            
                        </Content>
                    </ext:FormPanel>
                </Items>
            </ext:Panel>
    </Items>
    </ext:TabPanel>
    In the second case it works fine. But I can't to use this code because I need div tags.

    <ext:TabPanel runat="server">
        <Items>
            <ext:Panel runat="server">
                <Items>
                    <ext:FormPanel runat="server">
                        <Items>
                                <ext:DateField  runat="server"></ext:DateField>
                                <ext:TextField runat="server" />
                         </Items>
                          <Content>
                                <uc:CustomerCategory2 runat="server" ID="CustomerCategories2Uc" />
                          </Content>
                          <Items> 
                                <ext:TextArea runat="server"  />
                           </Items>
                    </ext:FormPanel>
                </Items>
          </ext:Panel>
    </Items>
    </ext:TabPanel>
    Last edited by AlexMaslakov; Oct 12, 2011 at 11:22 AM.
  2. #2
    FormPanel doesn't support Content (Items only)
    If you need div then use Container
    <ext:DateField  runat="server"></ext:DateField>
    <ext:Container runat="server" Cls="x-form-clear-left" />
  3. #3
    Quote Originally Posted by Vladimir View Post
    FormPanel doesn't support Content (Items only)
    [/CODE]
    Are you sure? I used Content of FormPanel many times and it worked fine! I wonder why it doesn't work now.
    Do you mean using ext:Container in Items of FormPanel?
  4. #4
    Content doesn't make a sense with FormPanel because in this case FormPanel cannot manage fields (FormPanel works with Items only)
    If you use FormPanel with Content then you can change FormPanel by Panel

Similar Threads

  1. Replies: 1
    Last Post: Jan 16, 2012, 5:00 PM
  2. Replies: 0
    Last Post: Nov 17, 2011, 10:53 AM
  3. Replies: 1
    Last Post: Nov 09, 2010, 3:30 PM
  4. Replies: 0
    Last Post: Oct 19, 2010, 7:39 AM
  5. Property, user control and FormPanel
    By alainfo in forum 1.x Help
    Replies: 2
    Last Post: Jul 23, 2009, 11:02 AM

Posting Permissions