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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:06:05+00:00 2026-06-04T22:06:05+00:00

How to insert file upload button in ExtJs group wise grid header? I have

  • 0

How to insert file upload button in ExtJs group wise grid header?

I have ExtJs grid, and now need to add file uploader button in header.

Ext.onReady(function(){

    Ext.QuickTips.init();

    var xg = Ext.grid;


    // shared reader
    var reader = new Ext.data.ArrayReader({}, [
       {name: 'filename'},
       {name: 'size'},
       {name: 'action'},
       {name: 'document'}

    ]);

    var store = new Ext.data.GroupingStore({
            reader: reader,
            data: xg.dummyData,
            sortInfo:{field: 'filename', direction: "ASC"},
            groupField:'document'
        });

    var grid = new xg.GridPanel({
        store: store,
        columns: [
            {id:'filename',header: "File Name", width: 60, sortable: true, dataIndex: 'filename'},
            {header: "Size", width: 20, sortable: true,  dataIndex: 'size'},
            {header: "Action", width: 20, sortable: true,  dataIndex: 'action'},
            {header: "Document", width: 20, sortable: true, dataIndex: 'document',hidden:'true'}
        ],

        view: new Ext.grid.GroupingView({
          forceFit:true,
          groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]}) '
        }),

        frame:true,
        width: 700,
        height: 450,
        collapsible: true,
        animCollapse: false,
        title: 'Grouping Example',
        iconCls: 'icon-grid',
        renderTo: document.body
    });
});



// Array data for the grids
Ext.grid.dummyData = [
    ['3m Co',1,'Delete', 'Invoice'],
    ['Alcoa Inc',29.01,'View', 'Invoice'],
    ['Altria Group Inc',83.81,'Download', 'Invoice'],
    ['American Express Company',52.55,'View Download', 'SOP'],
    ['American International Group, Inc.',64.13,'View Download', 'GSP'],
    ['Caterpillar Inc.',67.27,'View Download', 'GSP'],
    ['Citigrup, Inc.',49.37,'View Download', 'SOP'],
    ['Johnson & Johnson',64.72,'View Download', 'Other'],
    ['Merck & Co., Inc.',40.96,'View Download', 'Other'],
    ['Walt Disney Company (The) (Holding Company)',29.89,'View Download', 'GSP']
];

Now need file upload button in GroupingView some how.

  • 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-06-04T22:06:06+00:00Added an answer on June 4, 2026 at 10:06 pm

    Change groupTextTpl by startGroup
    For example:

    startGroup : new Ext.XTemplate(
       '<div id="{groupId}" class="x-grid-group {cls}">',
       '<div id="{groupId}-hd" class="x-grid-group-hd" style="{style}"><div class="xgrid-group-title" style="position:relative;">',
       "<div style='float:left;'>{text} ({[values.rs.length]} {[values.rs.length > 1 ?   'Registros' : 'Registro']})&nbsp;</div><div><img src='img/desktop/images/prueba/completar.png' class='x-action-col-icon x-action-col-0' ext:qtip='Completar' onclick='cambiarEstado(\""+id+"\",\""+1+"\");'/></div>",
    '</div></div>',
    '<div id="{groupId}-bd" class="x-grid-group-body">'
    )
    

    With this you have control over the design of group

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

Sidebar

Related Questions

I have a problem reading a txt file to insert in the mysql db
I need to do the following things for a text file..and insert the seeked
I have simple SSIS package which reads data from flat file and insert into
I need to insert string to text file, for example, before first line from
Hello I'm doing file upload with Yii. I have implemented this way and it
I have a basic upload form: <form method=post action= enctype=multipart/form-data > <input type=file name=logo>
Im trying to insert the userid into my table in a php file upload
I have a method which contains a file upload control. It uses the .saveas
i have problem on my php file upload script , i am trying to
I have an image upload script, originally I kept it in a file called

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.