Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6608843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:39:09+00:00 2026-05-25T19:39:09+00:00

I have a grid like this var groupingFeature = Ext.create(‘Ext.grid.feature.Grouping’, { groupHeaderTpl: ‘Invoice: {invoice_number}

  • 0

I have a grid like this

var groupingFeature = Ext.create('Ext.grid.feature.Grouping', {
    groupHeaderTpl: 'Invoice: {invoice_number} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})'
});

{
xtype   : 'grid',
store   : Ext.getStore('invoice_items'),
columns : [
            { text: 'Invoice Number', flex: 1, dataIndex: 'invoice_number', hidden:true },
            { text: 'Item Code', flex: 1, dataIndex: 'item_code'},
            { text: 'Description', flex: 1.5, dataIndex: 'description' }
        ],
features: [groupingFeature]                                 
}

im using hidden filed invoice_number to group this grid and i have the output like this

invoice

what i want to do is show the grouped invoice number in the group header. is it possible in extjs4? how to do it?

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:39:10+00:00Added an answer on May 25, 2026 at 7:39 pm

    found the solution. i though i had to put group column name here

    groupHeaderTpl: 'Invoice: {invoice_number} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})'
    

    but once i replace it with Invoice: {name}

    value of the group column shows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GridPanel in EXTJS4 with JSONstore. Like this: var storeGridSpe = Ext.create('Ext.data.JsonStore',{
I have two EXT JS check columns like this: var maleColumn = new Ext.grid.CheckColumn({
I have a RowExpander defined like this : var expander = new Ext.ux.grid.RowExpander({ id:
When I have an array like this: var grid = Array([1,1,1],[1,0,1],[1,1,1]); And when you
I have an ExtJS grid like so: var grid = new Ext.grid.GridPanel({ ... });
I have a panel defined like this: var msgDetailsPanel = new Ext.ux.ManagedIFrame.Panel({ title: 'M',
I have an ext js grid like below: var grid = new Ext.grid.GridPanel({ columns:
I have a Grid inside a Canvas defined like this: <Canvas x:Name=outerCanvas> <Grid Grid.Row=1
I have something like this in my xaml: <Grid> <Image Name=image Source=../../Images/DefaultImage.png HorizontalAlignment=Stretch VerticalAlignment=Stretch></Image>
We have two textBlocks like this: (we used .NET FW 3.0) <TextBlock Grid.Column=0 Name=tabName

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.