1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default Answered: Nested grids in a treegrid

    Answered: Nested grids in a treegrid


    I have nodes and every node can have n sub-nodes. But every node also has n records:
    Code:
    {
      name: 'root'
      data: [
        { a: '123', b: '123' ...},
        { a: '123', b: '123' ...},
        { a: '123', b: '123' ...},
        ...
      ]
      children: [
        {
           name: 'something',
           data: [
             {...},
             {...},
             {...},
              ...
           ],
           children: [...]
        },
        {
           name: 'somethingelse',
           data: [
             {...},
             {...},
             {...},
              ...
           ]
           children: [...]
        },
        ...
      ]
    }
    So it's like I have a tree, where every node is a table with n*m cells.
    Is it possible to nest those grids in a tree?

  2. You can render a component to any element but it gets difficult to manage those components

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can render a component to any element but it gets difficult to manage those components
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    Any? That's good, thanks!

    This "Trees with tables for nodes" was the first idea I had by looking at the data-structure, maybe there is an easier way to do it.

  5. #4
    Sencha User
    Join Date
    Oct 2011
    Location
    Ukraine
    Posts
    154
    Answers
    11
    Vote Rating
    6
    Romick is on a distinguished road

      0  

    Thumbs up Maybe tree panel?

    Maybe tree panel?


    Are looking for tree panel?
    http://docs.sencha.com/ext-js/4-0/#!.../treegrid.html
    But to look as grid just add cells borders in css.

    Or also if you really need a grid inside in tree node than you can look here:
    https://github.com/mitchellsimoens/U...ionRowExpander
    screenshots:
    gredInTree.jpg

  6. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    @Romick

    Are you finding that useful? Any issues with it?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  7. #6
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    This was the idea:example.jpgEvery node, even those who contain nodes, can have n data-records with m columns ( but the column count is for every record of every node the same, probably the record count is the same for every node too).I thought of putting a grid for every expanded node in the tree...

  8. #7
    Sencha User
    Join Date
    Oct 2011
    Location
    Ukraine
    Posts
    154
    Answers
    11
    Vote Rating
    6
    Romick is on a distinguished road

      0  

    Thumbs up


    @mitchellsimoens

    Yes it is cool. I extended it but with no sucsess. It would be great if there were a cascade nesting.

    For now i didn't use it, because itisn't actualy what i need. But i see in me future widget i will defunetlly use it.

    Sorry for dellayed reply, some how missed your message. Thanks for sharing this. It's realy cool!

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi