Results 1 to 7 of 7

Thread: layout problem

  1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
      0  

    Smile layout problem

    hi,

    the site has a viewPort

    in left : treePanel
    in right : content

    Now..
    3 grid must put in content section
    How can I put these grids ( 2 grid beside eachother and the third in bottom of them) in content? use of Panel or viewPort or..?

    Thanks,
    shahrzad
    Regards,
    shahrzad

  2. #2
    Sencha Premium User danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    462
    Vote Rating
    230
      0  

    Default

    You can have only one viewPort. I would go for panel with border layout and grids in west, center and south regions
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  3. #3
    Ext User
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default

    thanks for reply, let' see what I did:


    scanJobs.superclass.constructor.call(this, {
    frame : true,

    autoScroll: true,
    layout: {
    type: 'fit',
    padding: '5',
    align: 'left'
    },

    items: [columnGrids, simpleGrid]

    });

    ...
    var columnGrids = new Ext.Panel( {
    layout: 'column',
    items: [{ ....

    var simpleGrid = new Ext.grid.EditorGridPanel( {
    store : store,
    columns : scheduleColumns,

    ...


    Regards,
    shahrzad

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,385
    Vote Rating
    1540
      0  

    Default

    Ugh! Why don't people wrap code in code tags?

    From a design standpoint, people who have low resolutions will have a hard time with a layout that is basically 5 columns wide then. Your Viewport with 3 and your center region having 3. Maybe a TabPanel for the center region would be more desirable? Also, if you can, I'd use xtype as much as possible.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Ext User
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
      0  

    Exclamation

    it wasn't my idea,... my idea was also using of tab panel but they...
    Regards,
    shahrzad

  6. #6
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,385
    Vote Rating
    1540
      0  

    Default

    Quote Originally Posted by shahrzad View Post
    it wasn't my idea,... my idea was also using of tab panel but they...
    Ha! Been there! Good thing that ExtJS is an easy framework to create different layouts easy to show them that one is better than the other :-)
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  7. #7
    Ext User
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default

    but ifonly extjs has the HowTo articles too... it is sometimes hard to understand here just in codes, we have to take many times to understand what it does! anyway thanks..
    Regards,
    shahrzad

Similar Threads

  1. Replies: 1
    Last Post: 28 May 2009, 4:49 PM
  2. Replies: 8
    Last Post: 15 May 2009, 8:57 AM
  3. Problem with Border layout inside Column layout
    By catacaustic in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 18 Mar 2008, 2:44 PM
  4. Column layout inside a card layout - display problem
    By nick3006 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Jan 2008, 5:31 PM
  5. Problem occurred while using dialog in layout complex layout
    By davy_wei in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 4 Jan 2007, 7:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •