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
 
 
4301fsf11/1/2024Naked ChefMangoMangoNo
4289sfd11/14/2024Naked ChefMangoAppleNo
4287sdf11/7/2024Naked ChefMangoPapayaNo
675Salad10/17/2017Omu ManPapaya, WalnutsRiceNo
673Apples7/5/2022Hyperion LightWalnuts, Cauliflower, BuckwheatTomatoNo
671Cookies4/19/2018Joanna StanBanana, MongongoWheatNo
669Morning Tea2/17/2012Bruce NolanBanana, AlmondsArtichokeYes
667Morning meal1/9/2013Chronos TimpusApple, MongongoAppleNo
665Snacks and movie1/13/2018Omu ManChestnuts, Cucumber, LettucePapayaYes
663Apero4/11/2012Gaia EarthTomato, Onion, AlmondsArtichokeYes

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
 
 
4301fsf11/1/2024Naked ChefMangoMangoNo
4289sfd11/14/2024Naked ChefMangoAppleNo
4287sdf11/7/2024Naked ChefMangoPapayaNo
675Salad10/17/2017Omu ManPapaya, WalnutsRiceNo
673Apples7/5/2022Hyperion LightWalnuts, Cauliflower, BuckwheatTomatoNo
671Cookies4/19/2018Joanna StanBanana, MongongoWheatNo
669Morning Tea2/17/2012Bruce NolanBanana, AlmondsArtichokeYes
667Morning meal1/9/2013Chronos TimpusApple, MongongoAppleNo
665Snacks and movie1/13/2018Omu ManChestnuts, Cucumber, LettucePapayaYes
663Apero4/11/2012Gaia EarthTomato, Onion, AlmondsArtichokeYes

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