PDA

View Full Version : Grid Edit.....



thilakmsc
7 Aug 2012, 2:44 AM
Dear all.,

1.I was create a grid with Edit., While Click the row twice.

But i also have Edit button as in toolbar. I need to trigger the Edit Plugin while click the Edit Button.


2. I need to insert all rows in the Grid., May i know how to pass all values to database.

friend
7 Aug 2012, 4:15 AM
Both the CellEditing (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.grid.plugin.CellEditing) and RowEditing (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.grid.plugin.RowEditing)plugins startEdit (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.grid.plugin.CellEditing-method-startEdit) method. The CellEditing plugin also has a startEditByPosition (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.grid.plugin.CellEditing-method-startEditByPosition) method.

As for updating the database, take a look at the autoSync (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.data.Store-cfg-autoSync) config option of Ext.data.Store (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.data.Store). Also look over the api (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.data.proxy.Ajax-cfg-api) config property of Ext.data.proxy.Ajax (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.data.proxy.Ajax).