PDA

View Full Version : GridPanel - Grouping "Column" Style and Header Text



stevenoc
Feb 17, 2010, 6:38 AM
Hi there,

Using the below code:




<ext:GridPanel
ID="grdPnlFavReports"
runat="server"
Title="Favorite Reports"
Frame="false"
StoreID="storeFavReports"
StripeRows="true"
AutoExpandColumn="DisplayName"
Collapsible="true"
AnimCollapse="false"
TrackMouseOver="true"
EnableColumnMove="false"
EnableDragDrop="false"
EnableColumnHide="false"
MonitorResize="true"
MonitorWindowResize="true"
AutoScroll="true"
AutoWidth="true"
Height="150">
<ColumnModel ID="ColumnModel1" runat="server" >
<Columns>
<ext:GroupingSummaryColumn
ColumnID="DisplayName"
Sortable="true"
DataIndex="DisplayName"
Hideable="false"
>
</ext:GroupingSummaryColumn>
<ext:Column
ColumnID="ReportName"
Header="Type"
Sortable="true"
DataIndex="ReportName"
Width="50" >
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel runat="server" />
</SelectionModel>
<View>
<ext:GroupingView
ID="grpViewFavReports"
runat="server"
ForceFit="true"
ShowGroupName="true"
EnableNoGroups="true"
HideGroupedColumn="true"
StartCollapsed="true"
GroupTextTpl='{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Reports" : "Report"]})'/>
</View>
<Plugins>
<ext:GroupingSummary ID="grpSumFavReports" runat="server" />
</Plugins>
<LoadMask ShowMask="true" />
</ext:GridPanel>




The Grouping column / header comes out as follows:
Type: <value>, where value is the returned data.


The "Type:" text comes from the columns header text.




Q. Is there any way that I can remove the "Type:" value appearing in the result?


Q. Is there any way of specifying the default style used for the grouping? Trying to remove the default line (blue in colour) from the group heading. I've set the default theme for the Coolite controls to be "Grey".


Regards
Steven