PDA

View Full Version : How to register expand



chauhan
4 Jan 2012, 11:22 AM
Hello everyone,
Ext JS - a wonderful JS framework. However, I seems to have stumbled upon a problem when using RowExpander. I want to display ExtJS form when any row of a grid is expanded. I read that RowExpander allows to put arbitrary content.
How can I register events expandbody or collapsebody for Ext.ux.RowExpanderwhen using it as a plugin with grid?
Thanks

mitchellsimoens
4 Jan 2012, 11:52 AM
The event gets firing on the grid view, not the grid panel or the plugin


viewConfig : {
listeners : {
expandbody: function(rowEl, rec, bodyEl) {

}
}
}

chauhan
12 Jan 2012, 3:01 AM
Your answer is the perfect one. 

Thanks
Chauhan