[CLOSED] Controls appear in the next line

  1. #1

    [CLOSED] Controls appear in the next line

    Hi there,

    I have started using Coolite recently but I'm having a trouble in designing when I use these controls with asp.net controls or with html tags. The following is a very basic example:

    
       Username:
       <ext:Label runat="server" ID="lblUsername" /> ( <asp:LinkButton ID="btnLogout" runat="server" &#111;nclick="btnLogout_Click">Logout</asp:LinkButton> )
       
       
       &amp;nbsp;|&amp;nbsp;
       <ext:Button runat="server" ID="btnAdmin" Icon="UserSuitBlack" Text="Admin Panel">
            <Menu>
                 <ext:Menu ID="Menu" runat="server">
                     <Items>
                         <ext:MenuItem ID="MenuItem1" runat="server" Text="MI1" Handler="function(){alert('Menu 1');}" />
                         <ext:MenuItem ID="MenuItem2" runat="server" Text="MI2" Handler="function(){alert('Menu 2');}" />
                         <ext:MenuItem ID="MenuItem3" runat="server" Text="MI3" Handler="function(){alert('Menu 3');}" />
                     </Items>
                 </ext:Menu>
             </Menu>
       </ext:Button>
    What I expect from this code is that controls should appear in the same line but Coolite button appears in the 2nd line. This is not only happening with the button but also with other controls. What am I doing wrong? What is the way to solve this problem.

    Look forward to hearing from you soon.

    Thanks,
    Gokce
  2. #2

    RE: [CLOSED] Controls appear in the next line

    Hi,

    Coolite Button has complex markup and it is block element therefore it appears on new line. You can try to add for Button


    StyleSpec="display:inline"



Similar Threads

  1. [CLOSED] Chart Line
    By pdcase in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Aug 14, 2012, 3:25 PM
  2. [CLOSED] How to display 2 controls side by side (on the same line)
    By hgouw in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 19, 2011, 4:24 AM
  3. [CLOSED] Formpanel with 2 fields on the same line
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 25, 2010, 9:10 PM
  4. Two Buttons on one line
    By ankit in forum 1.x Help
    Replies: 0
    Last Post: Jun 14, 2010, 12:16 PM
  5. Replies: 0
    Last Post: Nov 16, 2009, 4:02 PM

Posting Permissions