I have an ExtJS 6.5.1 app. I am unable to bind a grid
column to the viewModel. I am using the same viewModel for a grid && a form.
If I bind the fieldLabel it works. If I bind the grid title to that viewModel that also works. Its just the column header I am unable to bind.
I get the following errors:
Ext.mixin.Bindable.applyBind(): Cannot bind header on Ext.grid.column.Column - missing a setHeader method.
And
this[binding._config.names.set] is not a function
Someone elsewhere was getting similiar errors for development mode because some required classes weren't loading so he was able to resolve it by requiring Ext.data.proxy.*
. I tried the same and just "*"
but got the same erorrs.
Here is the FIDDLE.
The
header
config deprecated since version 4.0 usetext
instead.Paste bellow code in your FIDDLE it will work and bind perfectly.
CODE SNIPPET