'Ext.grid.plugin.RowExpander.setCmp(): The 'rowBodyTpl' config is required and is not defined (ExtJS 7.3x)
I am trying to use the RowExpander plugin, and I am getting the error
app.js?_dc=1622045752220:5338 [E] Ext.grid.plugin.RowExpander.setCmp(): The 'rowBodyTpl' config is required and is not defined.
I have tried the following two scenarios to define the rowBodyTpl and the error still occurs. Anyone have any ideas?
Implementation one I added the itemConfig as the example rowExpander in sencha docs
{
xtype: 'gridcolumn',
store: 'Accounts',
plugins: {
rowexpander: true,
},
itemConfig: {
body: {
tpl: '<img height="100" src="http://www.sencha.com/assets/images/sencha-//avatar-64x64.png"/>'
}
}
}
My second attempt I added the rowbody tpl to the gridcolumn itself and still get the error above..
{
xtype: 'gridcolumn',
store: 'Accounts',
plugins: {
rowexpander: true,
},
rowBodyTpl: null
enter code here
}
Solution 1:[1]
For Classic Toolkit.
plugins: {
rowexpander: {
rowBodyTpl: new Ext.XTemplate( '<p>text</p>' )
}
},
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | John Smith |