Grid inline editing

The Awesome Grid supports inline editing mode. Inline editing enables you to edit the data upon a row click or edit button click, and save the changes either by clicking the save button or exiting the row in case or rowclick edit.
Rows can be saved all at once using batch save, or one by one. Editing can also be performed one row at once instead of having multiple rows in edit mode at the same time.
Drag a column header and drop it here to group by that column
Id
Name
Date
Chef
Meals
Bonus Meal
Organic
 
 
675asdasd1/9/2013Phoebe PhoebesCarrot, OatsCarrotYes
673asdasdasd5/11/2020Josh BaskinMango, Banana, WalnutsOatsNo
671qqqewq3/27/2018Gaia EarthCherryOnionNo
669qweqeqw10/21/2022Phoebe PhoebesRiceTomatoNo
667qweqweq7/21/2016Fromage SandwichPotato, Lettuce, OatsWheatNo
665Snacks and movie11/7/2010Charles DucheminOnionCucumberNo
663Apero5/21/2018Chronos TimpusCauliflower, BuckwheatChestnutsYes
661petit dej11/19/2016Charles DucheminLettuce, CeleryTomatoNo
659Breakfast5/25/2022Chef ChefCarrotWalnutsNo
657Dejeuner9/17/2017Cheyenne GoldblumCarrotWheatYes

Inline editing for grid achieved using InlineEdit grid mod
Delete action is the same as in the grid crud demo, using a popup.
To set initial values on create set the initial model as a parameter in the inlineCreate method, example: $grid.data('api').inlineCreate({ Name: 'hi' })
On Save you also get the grid parameters, for example this grid has txtSearchInl as parent, so you get the value of txtSearchInl as 'search' parameter in the Edit/Create post actions

Edit on row click 

Drag a column header and drop it here to group by that column
Id
Name
Date
Chef
Meals
Bonus Meal
Organic
 
 
675asdasd1/9/2013Phoebe PhoebesCarrot, OatsCarrotYes
673asdasdasd5/11/2020Josh BaskinMango, Banana, WalnutsOatsNo
671qqqewq3/27/2018Gaia EarthCherryOnionNo
669qweqeqw10/21/2022Phoebe PhoebesRiceTomatoNo
667qweqweq7/21/2016Fromage SandwichPotato, Lettuce, OatsWheatNo
665Snacks and movie11/7/2010Charles DucheminOnionCucumberNo
663Apero5/21/2018Chronos TimpusCauliflower, BuckwheatChestnutsYes
661petit dej11/19/2016Charles DucheminLettuce, CeleryTomatoNo
659Breakfast5/25/2022Chef ChefCarrotWalnutsNo
657Dejeuner9/17/2017Cheyenne GoldblumCarrotWheatYes

Edit on row click, and save when clicking out if there is are any changes.
When there are validation errors, grid loading (go to another page, sort, group) will be prevented.



Comments