Extending Grid giving error with initConfig()
We need to extend the grid component and add new properties to it.
Below is simplified version of the code we are using for it:
showCountColumn:true//a new property added
this.initConfig(config);//This line is throwing error -> me.additionalCls is undefined on ext-all-debug.js (line 17129)
Here line this.initConfig(config); is producing the error - me.additionalCls is undefined ext-all-debug.js (line 17129).
We have extended other components too, like window, textfield etc.. and used the same approach but have never faced this error.
The error goes off as soon as the line this.initConfig(config) is commented. But if we comment this line then how will the new properties defined in config be initialized?
Could someone guide at this?
Thanks in advance.