1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    12
    Vote Rating
    0
    mjbcesar is on a distinguished road

      0  

    Default Unanswered: How to (properly) render additional data in grid with RowExpander

    Unanswered: How to (properly) render additional data in grid with RowExpander


    I'm trying to render some data in the rowbody in a grid (with the RowExpander plugin). My problem is that the ol' rowBodyTpl isn't enough for me as this data is from Records on Stores from the record being rendered (hmmm...).

    Putting it simply: Every record of the grid has a store in it (lets call it Items). So, I want to render therecord data and some data of the Items records aswell.

    What would be the best(ish) way of doing so?
    Override the renderer function of the rowexpander plugin, override the getAdditionalData, or none of these?Thank you.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,110
    Answers
    678
    Vote Rating
    470
    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 want an embedded grid for each parent row?

    Scott.

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    12
    Vote Rating
    0
    mjbcesar is on a distinguished road

      0  

    Default


    Not really. I accomplished what I was looking for by overriding the "getRowBodyFeatureData" method of the rowexpander plugin and feeding the record instead of the record data to the getRowBodyContents and then let the XTemplate work its magic

Thread Participants: 1

Tags for this Thread