[CLOSED] GroupHeaderTplString custom

  1. #1

    [CLOSED] GroupHeaderTplString custom

    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?
    Last edited by Baidaly; May 08, 2013 at 3:06 PM. Reason: [CLOSED]
  2. #2
    Hi @jCarlosF,

    A default template is:
    GroupHeaderTplString='{columnName}: {name}'
    "columnName" is a column's DateIndex, i.e. a ModelField's Name.
  3. #3
    Quote Originally Posted by Daniil View Post
    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!
  4. #4
    Store supports grouping on one field only (multiple fields grouping is not supported)
  5. #5
    Quote Originally Posted by Vladimir View Post
    Store supports grouping on one field only (multiple fields grouping is not supported)
    Ok, thanks!

Similar Threads

  1. [CLOSED] GroupHeaderTplString null values
    By JCarlosF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 23, 2013, 3:04 PM
  2. [CLOSED] GridPanel GroupHeaderTplString when datasource is datatable
    By CPA1158139 in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 15, 2013, 1:17 PM
  3. Replies: 4
    Last Post: Jul 30, 2012, 7:24 PM
  4. Replies: 2
    Last Post: Jan 09, 2012, 7:18 AM
  5. [CLOSED] Custom event in custom tree panel not being generated
    By anup in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 31, 2011, 8:45 PM

Posting Permissions