PDA

View Full Version : Ext.ux.grid.GridAction



AlxH
18 Apr 2008, 2:04 PM
I wrote a plugin (my first try) for a grid which adds "add", "remove", "save" and "reject" buttons to it and handles the datatransfer to the server.
It can optionally be used with the excellent Ext.ux.RecordForm plugin from saki, or with a simple editorgrid.
Just add

plugins:[Ext.ux.grid.GridAction({url:'backend.php'})] or with RecordForm:

plugins:[Ext.ux.grid.GridAction({url:'backend.php',recordEditor:recordForm.show,recordEditorScope:recordForm})] to your grid.
The Backend (e.g. PHP) is expected to handle JSON-POST-data in the form of:

action: 'saveData'
data:[{ ...RECORD... }]

greets,
Alex