Jun 29, 2010, 9:01 PM
[CLOSED] [1.0] GridPanel issue with Grouping and Column Alignment
We discovered an issue with the GridPanel (SVN as of today) where setting alignment on a column will cause a problem when that column is grouped. When the column (alignment specified) is grouped, the header will disappear, but the row value will not, causing the data to be shifted over and not matching the headers appropriately.
To reproduce, I took the Gridpanel Grouping example (/Examples/GridPanel/Miscellaneous/Grouping/Default.aspx) and modified it as seen below. I moved the Indoor? column to be second in the columns and set the Align="right" property. When you group on the Indoor? column, the header will hide, but the data will still be present in the column, shoving other columns over.
To reproduce, I took the Gridpanel Grouping example (/Examples/GridPanel/Miscellaneous/Grouping/Default.aspx) and modified it as seen below. I moved the Indoor? column to be second in the columns and set the Align="right" property. When you group on the Indoor? column, the header will hide, but the data will still be present in the column, shoving other columns over.
<ColumnModel runat="server">
<Columns>
<ext:Column ColumnID="Common" Header="Common Name" DataIndex="Common" Width="220" />
<ext:Column Header="Indoor?" DataIndex="Indoor" Width="55" Align="right" />
<ext:Column Header="Light" DataIndex="Light" Width="130" />
<ext:Column Header="Price" DataIndex="Price" Width="70" Align="right" Groupable="false">
<Renderer Format="UsMoney" />
</ext:Column>
<ext:DateColumn Header="Available" DataIndex="Availability" Width="95" Groupable="false" Format="yyyy-MM-dd" />
</Columns>
</ColumnModel>
Last edited by geoffrey.mcgill; Jul 07, 2010 at 1:57 AM.