Results 1 to 4 of 4

Thread: Create Two Lists in a Container

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
      0  

    Default Create Two Lists in a Container

    Hi,

    I want to create a container (view) with two lists, and had thought of something with this structure:

    Structure:

    • Ext.Container
      • Ext.Container (scroll: vertical)
        • Ext.Panel (width: 50%)
          • Ext.List
        • Ext.Panel (width: 50%)
          • Ext.List
    Each list has its store but the stores use the same model and different json files!

    Someone can give me some help, I've tried several ways and got nothing so far!

    Thanks!

    Best Regards,
    Hugo Trigo

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Add a top level container, configure the layout to "hbox".

    Add two lists to the container, set their 'flex' property to 1.
    Aaron Conran
    @aconran

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
      0  

    Default

    Hi,


    Thanks however I managed to solve, now I have another problem.


    I want to remove the possibility of making the scroll lists and only do the panel / container that has the two lists to move into the two simultaneous!


    Any ideas?

    Thanks!

    Best Regards,
    Hugo Trigo

  4. #4
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      -1  

    Default

    So you want two lists side by side but they will scroll as if they were one? Are they guaranteed to be equal height?
    Aaron Conran
    @aconran

Tags for this Thread

Posting Permissions

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