PDA

View Full Version : [CLOSED] GroupHeaderTplString custom



JCarlosF
Apr 29, 2013, 7:44 PM
how I can display two modelfield on property GroupHeaderTplString of Grouping in gridpanel?

the code that I have is:



<Features>
<ext:Grouping ID="Grouping1" runat="server" HideGroupedHeader="True" StartCollapsed="false" GroupByText="Agrupar por"
ShowGroupsText="Mostrar en Grupos" GroupHeaderTplString='{name}' >
</ext:Grouping>
</Features>



store gridpanel:



<ext:Store ID="stCompPagosDet" runat="server" PageSize="17" GroupField="Cla">
<Model>
<ext:Model ID="Model15" runat="server" >
<Fields>
<ext:ModelField Name="RegPat" />
<ext:ModelField Name="Cla"/>
<ext:ModelField Name="RegIMSS"/>
<ext:ModelField Name="Nombre"/>
<ext:ModelField Name="Valor"/>
<ext:ModelField Name="ValorVs"/>
</Fields>
</ext:Model>
</Model>
</ext:Store>


that shows the modelfield "cla", but also want to show the modelfield "Name",
how I can do this?

Daniil
Apr 30, 2013, 6:40 AM
Hi @jCarlosF,

A default template is:

GroupHeaderTplString='{columnName}: {name}'

"columnName" is a column's DateIndex, i.e. a ModelField's Name.

JCarlosF
May 07, 2013, 2:40 AM
Hi @jCarlosF,

A default template is:

GroupHeaderTplString='{columnName}: {name}'

"columnName" is a column's DateIndex, i.e. a ModelField's Name.


I am Sorry, still do not understand, what I need is :



<ext:Store ID="stCompPagosDet" runat="server" PageSize="17" GroupField="Cla, RegIMMS">



something, it is possible?

thanks!

Vladimir
May 07, 2013, 2:58 AM
Store supports grouping on one field only (multiple fields grouping is not supported)

JCarlosF
May 08, 2013, 3:31 PM
Store supports grouping on one field only (multiple fields grouping is not supported)

Ok, thanks!