Add html content inside ext:panel tags

Page 2 of 2 FirstFirst 12
  1. #11

    server tag in panel content

    Quote Originally Posted by craig2005 View Post
    I could have sworn i saw in some example a form panel mixed with html content. But i don't remember the tag name that was used.

    I think this was it.

    https://examples1.ext.net/#/Panel/Basic/FormGroup/

    Here is an example of a server tag inside the content tag but the behavior is not what I expected. The text about us appears above the panel not inside it.

     <ext:Panel ID="aboutPanel" runat="server" Border="false" AutoHeight="true" AutoWidth="true" Layout="fit" Title="About Us" collapsed="false" Padding="10" >
               <Content>
                     <% string test = "about us"; %>
                     <%=test %>
                 </Content>
        </ext:Panel>
  2. #12
    Quote Originally Posted by kirkhas View Post
    Here is an example of a server tag inside the content tag but the behavior is not what I expected. The text about us appears above the panel not inside it.

     <ext:Panel ID="aboutPanel" runat="server" Border="false" AutoHeight="true" AutoWidth="true" Layout="fit" Title="About Us" collapsed="false" Padding="10" >
               <Content>
                     <% string test = "about us"; %>
                     <%=test %>
                 </Content>
        </ext:Panel>
    There appears to be a small conflict somewhere when Layout="fit" is set, but no <Items> are supplied.

    In your sample, you do not require .Layout="fit" as you are not including inner <Items>. Just remove .Layout="fit" and your sample should work.

    As well, you should not require .AutoHeight="true" or .AutoWidth="true". Both of those are the default values.
    Geoffrey McGill
    Founder
  3. #13

    Location of cotrols in L<content>

    My issue is how do you decide the location of the controls in <content> compared to the control location of controls in <items>

    Also is it not possible to mix EXT controls with HTML controls in either of these sections?

    What if I want an HTML lable next to a EXT combobox?
  4. #14
    Example I want

    Hi
    ComboBox
    Bye


    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager runat="server" ID="ResourceManager1">
         </ext:ResourceManager>
        <ext:Container ID=container3 runat="server">    
        <Items>
        <ext:Label Text="HI" runat=server></ext:Label>
        </Items>
        <Content><mgr:picklist runat="server" ID="cboPickList" /></Content>
        <Items>
        <ext:Label ID="Label1" Text="Bye" runat=server></ext:Label>
        </Items>
        </ext:Container>
        </form>
    </body>
    What occurs is
    HIBYE
    ComboBox
    Last edited by Daniil; Jul 27, 2011 at 7:25 AM. Reason: Please use [CODE] tags
  5. #15
    just wrap the content in a container. See below.

    <body>
    <form id="form1" runat="server">
    <ext:ResourceManager runat="server" ID="ResourceManager1">
    </ext:ResourceManager>
    <ext:Container ID=container3 runat="server"> 
      <items>
             <ext:Label Text="HI" runat=server></ext:Label>
             <ext:Container ID=container3 runat="server"> 
                 <Content>My Content</Content>
             </ext:Container>
            <ext:Label Text="BYE" runat=server></ext:Label>
         </Items>
    </ext:Container>
    </form>
    </body>
  6. #16
    Quote Originally Posted by craig2005 View Post
    just wrap the content in a container. See below.

    <body>
    <form id="form1" runat="server">
    <ext:ResourceManager runat="server" ID="ResourceManager1">
    </ext:ResourceManager>
    <ext:Container ID=container3 runat="server"> 
      <items>
             <ext:Label Text="HI" runat=server></ext:Label>
             <ext:Container ID=container3 runat="server"> 
                 <Content>My Content</Content>
             </ext:Container>
            <ext:Label Text="BYE" runat=server></ext:Label>
         </Items>
    </ext:Container>
    </form>
    </body>
    This worked great TY.
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Html content inside panel
    By Birgit in forum 2.x Help
    Replies: 1
    Last Post: Apr 02, 2012, 2:34 PM
  2. html tags inside container
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Nov 20, 2009, 2:39 AM
  3. Print content inside a panel
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 0
    Last Post: May 19, 2009, 2:14 AM
  4. [CLOSED] panel content as html
    By alexp in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 01, 2009, 6:53 AM
  5. html tags in textfields
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Apr 16, 2009, 9:46 AM

Posting Permissions