extjs - EXT JS - Overriding Framework's GridPanel's emptyText attribute -


  • updated question

i believe, have grid panel's emptytext defined 'no records display' default. right? if so, there getter , setter method pair can use check value , set customized message?

an example of when want use getter method:

  • customized gridpanel class 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 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 grid component. have not defined emptytext attribute in of customized components im still seeing 'no records display' message while grid fetching data. thinking me.reconfigure place im seeing message while grid fetching data.

note when using local data emptytext not displayed unless set deferemptytext option false.

why can't try autoload:true in store (let false, if require).

please refer below link emptytext definition.

http://docs.sencha.com/extjs/4.0.7/#!/api/ext.view.abstractview-cfg-emptytext

thanks.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -