View Full Version : Grid emptyText not displayed

24 Apr 2013, 7:32 AM

I searched through the forums, but did not find a satisfying nor working solution for my problem. I have a class that extends 'Ext.grid.Panel'. Inside I set the 'emptyText' option. But it is not displayed. I'm currently using Ext 4.2. I also tried with 'deferEmptyText' without success. The store is definitely empty in the beginning.

Ext.define('My.app.MyRoutesGridPanel', {
extend: 'Ext.grid.Panel',
alias: 'widget.myroutespanel',
itemId: 'myroutespanel',

store: Ext.getStore('My.app.MyRoutes'),

viewConfig: {
deferEmtpyText: false,
emptyText: 'Text to display when empty.',

columns: [
text: 'name',
dataIndex: 'name',
flex: 55
text: 'length [km]',
dataIndex: 'length',
flex: 25

forceFit: true

Can anybody give me a hint?

Thanks a lot!

24 Apr 2013, 7:43 AM
This is the reported bug in sencha. You can refer to http://www.sencha.com/forum/showthread.php?109611-OPEN-1262-3.3-GridView-emptyText-not-working-at-several-levels

25 Apr 2013, 7:11 PM
Thanks for the report!
Looks like this issue is a bug in 4.2 and is reported for that version.