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);

本文介绍了一种在ExtJS中实现表格展开行的方法,并提供了一段代码示例。此外,还讨论了如何在数据加载完成后自动展开所有行,推荐使用toggleRow方法代替expandRow方法。
4851

被折叠的 条评论
为什么被折叠?



