1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      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,486
    Vote Rating
    138
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      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
    HugoTrigo is on a distinguished road

      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,486
    Vote Rating
    138
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      -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

Thread Participants: 1

Tags for this Thread