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 7670941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:56:09+00:00 2026-05-31T15:56:09+00:00

I want a grid with only two columns, one is for name and the

  • 0

I want a grid with only two columns, one is for name and the other for percentage. The very last row will have ‘Total’ as the name and the total percent as ‘percentage’. This row only will be styled differently than the other rows. Please guide me how can i accomplish this.
Thanks..

  • 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-31T15:56:10+00:00Added an answer on May 31, 2026 at 3:56 pm

    There is a grid feature to accomplish exactly that. It is covered here in the docs with some examples of how to use it.

    You can also customize the style by providing your own implementation of the x-grid-row-summary class in your css.

    EDIT

    Here’s some examples of setting the summary row style, as you can see there are a few ways to go about it. Realize that the summary row can’t be referenced until the viewready event occurs, it is not ready at the afterrender event, so I put all this logic in a viewready listener:

    Ext.create('Ext.grid.Panel', {
        features: [{
            ftype: 'summary'
        }],
        // other grid configs ...
        listeners: {
            viewready: function(grid) {
    
                // get reference to the summary row
                var summaryRow = grid.view.el.down('tr.x-grid-row-summary');
    
                // this will apply a css class to the row, in this example,
                // I am applying the extjs grid header style to my summary row
                summaryRow.addCls('x-grid-header-ct');
    
                // or, to do it all in javascript as you mentioned in the comment
                // first you would create a style object, I took these style
                // properties from the .x-grid-header-ct
                aStyleObject = {
                    cursor: 'default',
                    zoom: 1,
                    padding: 0,
                    border: '1px solid #d0d0d0',
                    'border-bottom-color': '#c5c5c5',
                    'background-image': 'none',
                    'background-color': '#c5c5c5'
                }
                // then you pass the style object using setStyle
                summaryRow.setStyle(aStyleObject);
    
                // or you could set the style for each cell individually using 
                // addCls or setStyle:
                Ext.Array.each(summaryRow.query('td'), function(td) {
                    var cell = Ext.get(td);
                    cell.addCls('some-class');
                    // or
                    cell.setStyle(anotherStyleObject);
                });
            }
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a ExtJs 4 Grid Panel that has two columns. Column ONE
I want to have a 2x2 grid with a buttons inside. This is only
I want to add sometimes one, sometimes two different TextBlocks into a single grid
I have two canvas's in a Grid, full scene images that I want to
I have some wpf gridviews(presenting only two here) <igDP:XamDataGrid x:Name=dgSummary GroupByAreaLocation=None ScrollingMode=Immediate HorizontalAlignment=Stretch VerticalAlignment=Stretch
I want to create a property grid (the one which is similar to the
I want to delete a row in the grid, but the grid always post's
I want to iterate through store and make grid columns dynamically. When I use
I have an ObservableCollection<Object> that contains two different types. I want to bind this
I want to control a grid with dates on two DatePickers, I'm reloading the

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.