Hybrid View
-
30 Sep 2010 1:19 AM #1
[OPEN-1301] GridView removal of last record should apply its default emptyText
[OPEN-1301] GridView removal of last record should apply its default emptyText
GridView does apply its own implicit emptyText value during its rendering. The code has
So, if total column width overflows, the width style on the body takes effect.Code:afterRender : function() { if (!this.ds || !this.cm) { return; } this.mainBody.dom.innerHTML = this.renderBody() || ' '; this.processRows(0, true); if (this.deferEmptyText !== true) { this.applyEmptyText(); } this.grid.fireEvent('viewready', this.grid); },
But when individual rows are removed using
The final row removal does not apply that, so even though the body has the correct width style, because it has no height, it does not cause an overflow, so you get no scrollbars.Code:// private removeRow : function(row) { Ext.removeNode(this.getRow(row)); this.syncFocusEl(row); },
Run up the array-grid example, expand column widths so that there is a horizontal scrollbar and then do this:
It ends up with no scrollbar.Code:g = Ext.getCmp("ext-comp-1002"); s = g.store; while (s.getCount()) s.removeAt(0);
Wheras if you did this:
The scrollbar is displayed.Code:g = Ext.getCmp("ext-comp-1002"); s = g.store; s.removeAll();Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-1262][3.3] GridView emptyText not working at several levels.
By Animal in forum Ext 3.x: BugsReplies: 8Last Post: 27 May 2012, 7:56 AM -
Updating a gridview's emptyText?
By kmoncada in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 6 Feb 2009, 10:15 AM -
GridView and emptyText
By sl5337 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 2 Oct 2008, 7:04 AM -
[2.0b1] GridView emptyText feature
By tjcrowder in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 29 Oct 2007, 2:03 PM


Reply With Quote