Basic example
Add editable: true
to column options to enable editing for a given column.
Car
Model
Year
Price
Honda
Civic
01/05/2013
28000
Mitsubishi
Lancer
01/05/2013
56000
Porsche
Boxster
09/02/2020
31000
Toyota
Celica
16/12/2010
18000
Kia
Sportage
14/09/2006
28000
Ford
Focus
04/07/2014
24000
Ford
Focus
16/12/2010
24000
Porsche
Boxster
24/01/2015
31000
Mitsubishi
Lancer
14/09/2006
18000
Kia
Sportage
01/05/2013
24000
Row edit mode
It is possible to edit multiple columns at once. To activate row edit mode add the following option:
rowEditMode: true
Car
Model
Year
Price
Honda
Civic
01/05/2013
28000
Mitsubishi
Lancer
01/05/2013
56000
Porsche
Boxster
09/02/2020
31000
Toyota
Celica
16/12/2010
18000
Kia
Sportage
14/09/2006
28000
Ford
Focus
04/07/2014
24000
Ford
Focus
16/12/2010
24000
Porsche
Boxster
24/01/2015
31000
Mitsubishi
Lancer
14/09/2006
18000
Kia
Sportage
01/05/2013
24000
Custom editing cell
It is possible to define custom editing cell by setting a new class for the cellEditor
.
In the following example we use custom cellEditor
for Price column .
Car
Model
Year
Price
Honda
Civic
01/05/2013
28000
Mitsubishi
Lancer
01/05/2013
56000
Porsche
Boxster
09/02/2020
31000
Toyota
Celica
16/12/2010
18000
Kia
Sportage
14/09/2006
28000
Ford
Focus
04/07/2014
24000
Ford
Focus
16/12/2010
24000
Porsche
Boxster
24/01/2015
31000
Mitsubishi
Lancer
14/09/2006
18000
Kia
Sportage
01/05/2013
24000