PDA

View Full Version : Ext JS with php , how to editable grid update and insert and delete record



mayurbhuva
29 Aug 2011, 2:12 AM
I built editable grid demo.

when i click on field and change some value then its dirty cell . how can i update record in database.
and also insert one button assing over top when click its add blank row in grid but how can i insert record in database.

Please help.

Thank You ..

skirtle
30 Aug 2011, 5:42 AM
I'd advise starting by reading the following:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Model
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.writer.Writer

Details depend on how you want to communicate with your server. Give it a go and if you can't get it to work let us know, including your sample code.

mayurbhuva
30 Aug 2011, 5:49 AM
Thank you for reply.

skirtle
30 Aug 2011, 6:28 AM
Perhaps this demo may help you too?

http://dev.sencha.com/deploy/ext-4.0.2a/examples/writer/writer.html

mayurbhuva
30 Aug 2011, 6:35 AM
Dear,

but its demo not save data in database its set session value. i want exact this type of example.

mayurbhuva
31 Aug 2011, 4:20 AM
Hi,

thanks for replay, its done with php and extjs.

but can u please tell me how to do it with cake php .

i want same output with cakephp and extjs.

in editable grid data display and can edit, update ,delete and insert .

Dumas
10 Jan 2013, 12:56 PM
Take a look at Bancha (http://banchaproject.org/), it does most of this automatically.

Best regards
Roland