---
title: "Using rowexpander in extjs4"
author: "standalone"
date: "2012-01-31T16:35:46Z"
tags: []
categories: ["Web前端"]
slug: "using-rowexpander-in-extjs4"
draft: false
lastmod: "2012-01-31T16:35:46Z"
id: 1387744
url: "https://standalone.iteye.com/blog/1387744"
---

Add code snippe below to your grid:

 

        plugins: [{  
            ptype: 'rowexpander',  
            rowBodyTpl : [  
                '&lt;p&gt;{yourcolumn}&lt;/p&gt;'  
            ]  
        }],

 

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