So I have the working view here that creates my grid just fine.
Ext.define('AM.view.user.List' ,{
extend: 'Ext.grid.Panel',
alias: 'widget.userlist',
title: '<center>Results</center>',
store: 'User',
dockedItems: [{
xtype: 'toolbar',
dock: 'bottom',
items: [
{ xtype: 'tbtext', text: 'Loading...', itemId: 'recordNumberItem' },
'->',
{ text: 'Print', itemId: 'print' },
'-',
{ text: 'Export', itemId: 'export' }
]
}],
initComponent: function() {
this.columns = [
{header: 'Name', dataIndex: 'name', flex: 4, tdCls: 'grid_cell'},
{header: 'ID', dataIndex: 'ID', flex: 2, tdCls: 'grid_cell'},
{header: 'Mid Name', dataIndex: 'mid_name', flex: 3, tdCls: 'grid_cell'},
{header: 'Last Name', dataIndex: 'last_name', flex: 4, tdCls: 'grid_cell'},
{header: 'Address', dataIndex: 'adress', flex: 3, tdCls: 'grid_cell'}
];
this.callParent(arguments); //Calls the parent method of the current method in order to override
var store = this.getStore(); //Retrieving number of records returned
textItem = this.down('#recordNumberItem');
textItem.setText('Number of records: ' + store.getCount());
//var val = Ext.getCmp('criteria_1').getValue();
//store.filter('ID', val);
}
});
I want to transform each row in the grid to be expandable and collapsable, like shown here in the Sencha Docs under Row Expander: http://docs.sencha.com/extjs/4.2.1/#!/example/build/KitchenSink/ext-theme-neptune/
I have tried adding plugins but cannot get it to work. Any ideas?