- Updated Question
I believe, we have the grid panel's emptyText defined to 'No Records to display' by default. Am i right? If so, Is there a getter and setter method pair that I can use to check the value and set it to a customized message?
An example of when I want to use a getter method:
Customized gridpanel class with more user defined functions
Ext.define('Everest.ux.grid.Panel', { extend: 'Ext.grid.Panel', alias: 'widget.extGridPanel', appId: '', more customized methods ....My Grid Component Class extending the above defined
Ext.define('Everest.ux.grid.MyGrid', { extend: 'Everest.ux.grid.Panel', alias: 'widget.myGrid', screenId: '', moduleId: '', initComponent : function() { var me = this; me.firstTimeLoaded = false; me.callParent(); }, .... var customStore = new Ext.data.Store({ fields: customStoreFields, groupField: groupByDefaultField, sorters: customSorters, sortOnLoad: !Ext.isEmpty(customSorters), proxy: { type: Ext.isEmpty(me.proxyType) ? 'ajax' : me.proxyType, url: customDefinedURL, reader: { type: 'json' } } }); **me.reconfigure(customStore, newCustomFields);**
me refers to my grid component. I have not defined emptyText attribute in any of my customized components but im still seeing that 'No Records to display' message while the grid is fetching data. I am thinking me.reconfigure is the place where im seeing the message even while the grid is fetching data.