Nested Grid in Ext JS 6.2.0

ExtJS 6.2.0 Early Access is out. There are good number of new features included in ExtJS 6.2.0. One of them is RowWidget Plugin, which Ext JS developer community has been waiting for a long time.

RowWidget Grid plugin allows us to add any component to the grid row expander body.

As an extension to my previous blog on Nested Grid in Ext JS, in this article we will see how to build Nested Grid Component in ExtJS 6.2.0.


Let us see how to add a grid as a row inside another grid.

Step 1: Download ExtJS 6.2.0 Early Access 

Step 2:  Generate new app

Step 3:  To the Grid Component add RowWidget plugin and grid as a widget as shown below:

 * This view is an example list of people.
 Ext.define('newfatures.view.main.List', {
 extend: 'Ext.grid.Panel',
 xtype: 'mainlist',

requires: [

title: 'Personnel',

store: {
 type: 'personnel'

columns: [
 { text: 'Name', dataIndex: 'name' },
 { text: 'Email', dataIndex: 'email', flex: 1 },
 { text: 'Phone', dataIndex: 'phone', flex: 1 }
 ptype: 'rowwidget',
 autoLoad: true,
 columns: [
 { text: 'Name', dataIndex: 'name',editor:{xtype:'textfield'} },
 { text: 'Email', dataIndex: 'email', flex: 1 ,editor:{xtype:'textfield'}},
 { text: 'Phone', dataIndex: 'phone', flex: 1,editor:{xtype:'textfield'} }
 listeners: {
 select: 'onItemSelected'


Observe the statements highlighted in blue. RowWidget, while constructing the provided widget, binds the current grid record to the defaultBindProperty of the Widget unless widget has bind config.

In this case, the current record is not bound to the child grid store as we have provided the bind config for the child grid widget.

Save and run the sample in your browser. Nested grid shall appear as shown below:

Nested Grid in ExtJS 6.2.0


In this article we have learnt how to create a nested grid in ExtJS 6.2.0 using RowWidget Plugin.

I am an experienced software architect involved in architecture, design, and implementation of full-stack Mobile and Web Application, and have significant experience and expertise in Sencha ExtJS/Touch, Angular, MEAN and Java/J2EE. I love to play with my son when I am not working.

Tagged with: ,
Posted in Sencha ExtJS
2 comments on “Nested Grid in Ext JS 6.2.0
  1. Phani Kiran G says:

    Hi Prabhu, i have used json files instead of api’s. JSON data in the json files will be the api response if we implement api’s.

  2. Thank you for sharing this But can share the code for this….. With Api response values

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

We Have Moved Our Blog!

We have moved our blog to our company site. Check out for all latest blogs.

Sencha Select Partner Sencha Training Partner
Xamarin Authorized Partner
Do More. With Sencha.

Recent Publication
%d bloggers like this: