PDA

View Full Version : [OPEN] [2.0b1][SOLVED] some bugs in Live Group Summary grid example



panhudie
14 Oct 2007, 3:06 AM
These are some way I found can trigger the bugs:

1. sets "Show in Groups" in column menu to not checked, and checks "Group By this Field".
firebug outputs:
GroupSummary.js (line 133)

s has no properties
[Break on this error] s.style.width = tw;

2. sets "Show in Groups" in column menu to not checked, and checks a cell to edit, and resizes a column(while not leaving edit mode).
firebug outputs:
GroupSummary.js (line 120)

s has no properties
[Break on this error] s.style.width = tw;

I just added

if (this.view.hmenu && this.view.hmenu.items.get('showGroups').checked)
to wrap the code in doAllWidths and doHidden of GroupSummary.js to fix it.

3. sets "Show in Groups" in column menu to not checked, and checks "Group By this Field", and just checks to show the column menu. Now column menu will display in the top left corner, not over the column lable.

It seems a bug in hideGroupedColumn opinion of GroupingView.js.

jsakalos
14 Oct 2007, 3:21 AM
Thank you for posting. It behaves as you describe. We will take a look at it and fix it.

jack.slocum
14 Oct 2007, 10:21 PM
Actually this is a bug in the example. It shouldn't have that checkbox since groups are obviously required with group summaries applied ;):


view: new Ext.grid.GroupingView({
forceFit:true,
showGroupName: false,
enableNoGroups:false, // <-- REQUIRED!
hideGroupedColumn: true
}),

panhudie
15 Oct 2007, 6:51 PM
Does grouping.html example also have the 3. problem if with hideGroupedColumn:true, and need to add enableNoGroups:false ?

jsakalos
16 Oct 2007, 2:21 AM
The bug has been fixed in svn; online version has not been fixed yet.

vertigoMX
22 Jan 2008, 11:10 PM
Where is the SVN version? cause I need to fix this Or what code can I add?

thanx :)

aconran
23 Jan 2008, 12:44 PM
This should have been resolved in Ext 2.0 stable. (Release as of December 4th)