1. #1
    Sencha User
    Join Date
    Jan 2014
    Posts
    3
    Vote Rating
    0
    pato909 is on a distinguished road

      0  

    Default Unanswered: How to display a hasMany association in a Datagrid

    Unanswered: How to display a hasMany association in a Datagrid


    Hello everybody,

    I'm a beginner with Extjs and i'll would like to display a hasMany association in a Datagrid.
    I've read a lot of topics about that and now i'm completely confused, i've not idea which solution is the better...

    My model ==> Continent hasMany Country.
    It's quite simple.
    Datagrid :
    Europe
    France - Paris
    Italy - Rome
    Asia
    ....

    I think Ext.grid.feature.RowBody is the suitable solution for that but I have any example.
    Is it possible to create a DataGrid in a rowBody. Where i can find an example ? ( with an hasMany association ).

    Thanks in advance and sorry for my bad English.

    Bye

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,868
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Are you asking for how to have a nested grid in a row?

  3. #3
    Sencha User
    Join Date
    Jan 2014
    Posts
    3
    Vote Rating
    0
    pato909 is on a distinguished road

      0  

    Default


    Are you asking for how to have a nested grid in a row?
    Yes, it's precisely what i try to do.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,868
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You would need to use a UX to provide this feature. Have a look at:
    https://github.com/mitchellsimoens/U...ionRowExpander

    Examples are present that will show how this is done.

  5. #5
    Sencha User
    Join Date
    Jan 2014
    Posts
    3
    Vote Rating
    0
    pato909 is on a distinguished road

      0  

    Default


    it works perfectly .. Thanks

Thread Participants: 1