Try Upgrade Adviser – Scan Your Ext JS Codebase for V8 App Upgrade

How to Quickly Customize Ext JS Data Grid (Part 3/6) – Row Editing Methods

March 12, 2020 5863 Views

Get a summary of this article:

Show

In this third article of the 6-part “Ext JS Grid Customization” blog series we focus on using row editing methods to customize a data grid. If you missed reading Part 1 and 2 of the series, take a quick read here:
Customize using built-in grid and column properties
Customize using grouping methods

The grid example shown here is a sample NBA 2020 player ratings data.

Cell Editing/Row Editing

Cell Editing/Row Editing

1. Activate plugin in grid configurationplugins: {
cellediting: {
clicksToEdit: 1
}
}

2. Define editor in column configuration (editor can be a textfield, datefield or a numberfield){
dataIndex: ‘position’,
text: ‘Position’,
flex: 1,
editor: {
xtype: ‘combo’,
typeAhead: true,
triggerAction: ‘all’,
selectOnFocus: false,
store: [
‘SG’, ‘PG’,’SF’, ‘C’,’PF’
] }
}

Sencha Fiddle:

RowExpander

Nested rows can be added under grid rows in a few easy steps.

RowExpander

Activate plugin and define template in grid configuration:plugins: {
rowexpander: {
rowBodyTpl: new Ext.XTemplate(

Team: {team}

‘,

Overall rating: {rating:this.formatRating}

‘,
{
formatRating: function(v) {
var color = v >= 85 ? ‘red’ : ‘blue’;
return ‘‘ + v + ‘‘;
}
})
}
}

Sencha Fiddle:

RowWidgets [classic]

Additional widgets (such as panels or even grids) can be added in nested grid rows. Here’s how.

RowWidgets Classic

Activate rowwidget plugin in grid configuration:plugins: {
rowwidget: {
widget: {
xtype: ‘panel’,
title: ‘Panel in rowwidget’,
bind: {
html : ‘{record.bio}’
}
}
}
}

Sencha Fiddle :

Stay tuned for our next article covering ‘Grid Display Data’ Methods.

 

Build Your Data Grid with Ext JS 7.1

The free 30-day trial of Ext JS 7.1 provides full access to the product features. Get started today and see how you can build a high-performing data grid for your application.

 

Jnesis—Sencha’s Select Partner

Does your enterprise need help with IT Strategy and architecture — specifically for Ext JS based web and mobile applications? Jnesis, our official partners in the France and Swiss area since 2013 have many services around the Sencha ecosystem and more. Check them out.

Recommended Articles

Creating a Mobile Application with Ext JS and Capacitor

Introduction Modern mobile applications demand rich user experiences, cross-platform compatibility, and rapid development cycles. In this document, you will learn how Ext JS and Capacitor…

Building Real-Time Dashboards with WebSockets and Frontend Frameworks

Real-time dashboards have become essential in industries where users need instant visibility into changing data. Whether monitoring financial transactions, logistics operations, industrial systems, application health,…

Front-End Frameworks Compared in 2026: Performance, Use Cases, and Trade-offs

Front-end framework selection in 2026 centers on three critical decisions: complete platform versus ecosystem assembly, performance at enterprise scale, and long-term maintenance costs. Ext JS…

Enhancing Component Logic: A Developer’s Guide to Ext JS Plugins

In the world of Ext JS, reusability is king. While subclassing a component is a common approach to extend functionality, it often leads to rigid…

Upgrading Ext JS 7.x to 8.0: A Practical Enterprise Guide

For teams already running Ext JS 7.x, upgrading to Ext JS 8.0 is usually a manageable modernization step rather than a full-scale rebuild. Because the…

Upgrading Ext JS 6.x to 8.0: A Practical Guide

For organizations maintaining Ext JS 6.x applications, upgrading to Ext JS 8.0 is typically a modernization exercise focused on stability, maintainability, tooling alignment, and validation…

View More