1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    14
    Vote Rating
    0
    emilyberk is on a distinguished road

      0  

    Exclamation Unanswered: Row Expander Columns

    Unanswered: Row Expander Columns


    Is there anyway to use the row expander plugin to render the additional data in columns under the expanded row designated columns?

    For example, if my grid had columns for Name, Date and School on expand age and address would appear below name and day of the week would appear below date and grade would appear below school instead of all just being in a united (colspan = number of columns) row.

    Suggestions?

  2. #2
    Ext JS Premium Member
    Join Date
    Jul 2011
    Posts
    29
    Vote Rating
    2
    beckdawg is on a distinguished road

      0  

    Default


    The short answer is yes. In RowExander.js on this line

    Code:
     o.rowBodyColspan = o.rowBodyColspan - 1;
    it controls how many columns your data will span. However, managing this is probably going to be a nightmare. What I would suggest is doing either an html table and styling it to work for your needs or do a nested grid. The html table is probably far simpler

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    14
    Vote Rating
    0
    emilyberk is on a distinguished road

      0  

    Default


    Yeah, i noticed that, after a bit of playing around i discovered that if you change it to just one... and use <td></td> tags in the xtemplate it will work. I'll post an example later for those with my same problem.


    thank you

Thread Participants: 1

Tags for this Thread