aligning ext.net buttons in single row

  1. #1

    aligning ext.net buttons in single row

    I have replaced the asp buttons with ext.net buttons. After replacing, the ext.net buttons comes on different rows.

    My initial code ::
     <div class="form-group">
                <asp:Button ID="btnSubmit" Text="SUBMIT" runat="server" OnClick="btnSubmit_Click" />        
                <asp:Button ID="btnReset" Text="RESET" runat="server" />
        </div>
    both the buttons align on same row.

    But when I replaced them with ext:Button, they appear on two rows.
    <div class="form-group">
                <ext:Button ID="btnSubmit" runat="server" Text="SUBMIT"></ext:Button>            
                <ext:Button ID="btnReset" runat="server" Text="RESET"></ext:Button>        
        </div>
    Firebug is showing one extra div for ext.net button btnSubmit
    App.ContentPlaceHolderID_btnSubmit_Container
    . And this div is covering whole row. Similarly div
    App.ContentPlaceHolderID_btnReset_Container
    is for btnReset. How to align both the buttons in a single row?
  2. #2
    Hello!

    Use a layout container for your buttons so you can nicely position them as you need. A viewport to the page is also advisable.

    - viewport: makes your page fit the browser window size
    - layout container: you have several layouts you can give to containers, explore them and understand how they work, and you can make auto-fit, line in one line, nest layouts and much more! Start on this example (which dispositions elements side by side) and move to the neighboring examples to discover the alternatives to them!

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. aligning headeritems in gridpanel column
    By sharmav1 in forum 1.x Help
    Replies: 2
    Last Post: Jan 26, 2015, 7:10 AM
  2. Replies: 2
    Last Post: Mar 08, 2013, 5:00 PM
  3. [CLOSED] MVC, Controls not aligning as expected
    By RCM in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 29, 2011, 6:06 AM
  4. [CLOSED] aligning ccheckbox in status bar
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 16, 2011, 2:12 PM
  5. aligning form objects
    By craig2005 in forum 1.x Help
    Replies: 2
    Last Post: Jan 06, 2011, 3:25 AM

Tags for this Thread

Posting Permissions