I'm working within a ExtJS 4.2 MVC style application using coffeescript and attempting to use rowExpander. The grid doesn't seem to render the 'rowBodyTpl' and whenever I click to expand the row I get an error : 'Uncaught TypeError: Cannot call method 'removeCls' of null ' when attempting to open it and 'Uncaught TypeError: Cannot call method 'addCls' of null ' Any insight or advice would be much appreciated.
Ext.define( "Test.view.ExpandGrid",
extend: "Ext.grid.Panel"
alias: "widget.test-view-expandGrid"
controller: "Test.controller.ExpandGridController"
requires: [ "Ext.data.*", "Ext.grid.*", "Ext.grid.plugin.RowExpander" ]
inject: [ "testStore" ]
config:
testStore: null
plugins: [{
ptype: 'rowexpander',
rowBodyTpl : [
'something'
]
}]
initComponent: ->
Ext.apply( @,
store: @getTestStore()
columns: [
{ text: "field1", dataIndex: "field1_data" },
{ text: "field2", dataIndex: "field2_data" },
{ text: "field3", dataIndex: "field3_data" }
],
features: [
ftype: "rowbody",
ftype: "rowwrap"
]
)
@callParent( arguments )
)