ITeye博客

Using rowexpander in extjs4

standalone · 2012-01-31 16:35 · javascript · web · Web前端 · Markdown

Add code snippe below to your grid:

 

        plugins: [{
            ptype: 'rowexpander',
            rowBodyTpl : [
                '<p>{yourcolumn}</p>'
            ]
        }],

 

How to expand all after store finishes loading?

 

I got many answers from google but they did not work!

 

Do not use

 

expander.expandRow(rownum);

 

Instead you should use

 

expander.toggleRow(rownum);

评论(2)

  1. #2 楼 · standalone · 2012-05-21 11:16

    hi, I never tried nested grid, however you're not the first one to ask this question, just learn from google:

    http://stackoverflow.com/questions/6346207/nested-grids-in-extjs-4

  2. #1 楼 · 姜中秋 · 2012-05-15 10:00

    怎么才能grid嵌套呢?即,grid里面在嵌套一个grid

评论功能维护中,当前仅展示历史评论。