-
6 Oct 2011 3:56 PM #1
Unanswered: Why doesn't this grid display the emptyText string?
Unanswered: Why doesn't this grid display the emptyText string?
I've been playing with this for several hours and can't figure out why the "emptyText" string isn't displayed in this grid. I'm using version 4.0.2a. Any ideas?
Thanks,Code:Ext.onReady( function() { Ext.create( 'Ext.grid.Panel', { title: 'Test', stateId: 'panel', width: 500, height: 600, columnLines: true, autoScroll: true, layout: 'fit', viewConfig: { deferEmptyText: false, emptyText: 'Nothing to display in this grid' }, store: Ext.create( 'Ext.data.JsonStore', { fields: [ 'col1', 'col2', 'col3' ], data: [], }), columns: [ { header: 'Column 1', dataIndex: 'col1' }, { header: 'Column 2', dataIndex: 'col2', flex: 1 }, { header: 'Column 3', dataIndex: 'col3' } ], renderTo: Ext.getBody() }); });
Steve
-
10 Oct 2011 5:21 PM #2
-
11 Oct 2011 12:12 AM #3
Testing using a similar example shows that this works with 4.0.6 but not 4.0.2. Sounds like 4.0.7 is going to be pushed to the whole community, not just subscribers, so I suspect the easiest fix will be upgrading once it's released.
http://www.sencha.com/blog/ext-js-4-1-update/
-
11 Oct 2011 9:07 AM #4
Skirtle,
Thanks for confirming it is an issue with 4.0.2. I searched the bug forum and the release notes for v4.0.4 - v4.0.6 (v4.0.3 release notes missing for some reason) and couldn't find anything relating to this issue. I look forward to the 4.0.7 release to see if a bunch of other issues I'm encountering have been fixed.
Steve


Reply With Quote