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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:42:44+00:00 2026-06-07T23:42:44+00:00

I wan’t to add an ext panel instead of html in ext grid panel.

  • 0

I wan’t to add an ext panel instead of html in ext grid panel. What I have right now is this:

features: [{
    ftype: 'rowbody',
    getAdditionalData: function (data, rowIndex, record, orig) {
        var headerCt = this.view.headerCt,
            colspan = headerCt.getColumnCount();
        // Usually you would style the my-body-class in CSS file
        return {
            rowBody: '<div style="padding: 1em">' + record.get("description") + '</div>',
            rowBodyCls: "my-body-class",
            rowBodyColspan: colspan
        };
    }
}],

But instead of rowBody I will like to include an standard panel that so I could add buttons and other layout.

It’s that posible?

  • 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-07T23:42:46+00:00Added an answer on June 7, 2026 at 11:42 pm

    So this is what I did to replace the rowBody with a custom panel

    In my view I create this:

    plugins: [{
        ptype: 'rowexpander',
        rowBodyTpl : ['<div id="group-row-{groupId}"> </div>']
    }]
    

    In my controller I added a expandbody listener like this:

     'myList grid[itemid = usergroupsList]' : {
        select: this.onSelect,
        expandbody: this.onExpandBody
     }
    

    and the onExpandBody

    onExpandBody: function(rowNode, record, expandRow) {                
        var row = 'group-row-' + record.get('groupId');
        var elem = document.getElementById(row);
        elem.innerHTML = '';
        var innerPanel = Ext.widget('panel',{                
            html: '<p>'+record.get('description')+'</p>',
            height: 100,
            flex: 1,
            border:0
            }]
        });
        innerPanel.render(row);
    

    Instead of creating the panel each time you can use xTemplate of define a component to render to this id.

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

Sidebar

Related Questions

Lets say I wan't to add 1 to an integer. This will only be
i have uitextfield i wan that it should start entering text from top instead
i wan to retrieve data from query involving many tables. i have a query
I wan't to add a subclass of UIViewController to a NSMutableDictionary which should be
I wan't to make a string regexp safe in Ruby. I have: comment =
I wan't to use this controll in my app but cant find which it
I wan't to search a filename for example like this string: $filetype = file.php.jpg;
I wan't to do some calculated pixelart with OpenCL and display this directly on
I wan to ask you, how to handle keys on certain area with this
I wan to insert this line of code: xml:lang=<?php echo $this->language; ?> lang=<?php echo

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.