How to Quickly Customize Ext JS Data Grid (Part 3/6) – Row Editing Methods
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
1. Activate plugin in grid configuration
2. Define editor in column configuration (editor can be a textfield, datefield or a numberfield)
Sencha Fiddle:
RowExpander
Nested rows can be added under grid rows in a few easy steps.
Activate plugin and define template in grid configuration:
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.
Activate rowwidget plugin in grid configuration:
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.
We’re excited to announce the official release of Rapid Ext JS 1.0, a revolutionary low-code…
The Sencha team is pleased to announce the availability of Sencha Architect version 4.3.6. Building…
Sencha, a leader in JavaScript developer tools for building cross-platform and enterprise web applications, is…