-
15 Mar 2011 7:23 AM #1
[CLOSED][PR3] Ext.grid.View - emptyText not always rendered
[CLOSED][PR3] Ext.grid.View - emptyText not always rendered
I found a situation where emptyText is not displayed.
Code being always better than word:
In the first grid, headers are declared in the "items" property and grid view "displayText" is not displayed.Code:Ext.onReady(function() { var grid1 = Ext.create("Ext.grid.GridPanel", { title: "Grid panel", renderTo: "grid1", height: 300, width: 300, viewConfig: { emptyText: "Empty text....", deferEmptyText: false }, store: Ext.create("Ext.data.Store", { fields: [ "value" ], proxy: { type: "memory", reader: "array" } }), items: [{ headers: [{ text: "Header", dataIndex: "value", flex: 1 }] }] }); var grid2 = Ext.create("Ext.grid.GridPanel", { title: "Grid panel", renderTo: "grid2", height: 300, width: 300, viewConfig: { emptyText: "Empty text....", deferEmptyText: false }, store: Ext.create("Ext.data.Store", { fields: [ "value", ], proxy: { type: "memory", reader: "array" } }), headers: [{ text: "Header", dataIndex: "value", flex: 1 }] }); });
In the second, headers are declared directly as a property of the grid and "displayText" is displayed as expected.
-
16 Mar 2011 12:01 AM #2
The headers should go directly on the grid, not under items.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Problem in view of GridPanel column menu when rendered in ToolTip
By livinglegends in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 5 Jan 2011, 12:06 AM -
Bug in MultiSelect? View isn't rendered in 2nd tab panel
By prodigy7 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 20 Oct 2009, 10:39 PM -
[OPEN] [2.0rc1][CLOSED] emptyText is submitted
By JorisA in forum Ext 2.x: BugsReplies: 5Last Post: 17 Nov 2008, 10:22 AM -
Change 'emptyText' of a Ext.View after created
By zeppelin in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 2 Jul 2007, 7:36 AM


Reply With Quote