View Full Version : grid editor problem in IE 8

Santosh Dhumale
2 Oct 2012, 9:11 PM
I am working on project using desktop application api.

I have one grid editor where there is about 11 text fields and I have to save the edited value on "update" button. I did this using edit event but when I trying to load the grid store after saving the records in database the grid displays old values in IE8 but it works in Firefox 11.0.

Please help to resolve this issue.

my store code:
var usersearchgrid = Ext.create('Ext.data.JsonStore', {
model: 'userdetails',
autoLoad: true,
// autoSync: true,
proxy: {
type: 'ajax',
url: 'GridData.php',
cache: true,
reader: {
type: 'json'
// root: 'data.csv',
// successProperty:false


and I done like this on Update button event.

edit: function( editor, event, eOpts ) {
var store = pipegroup.getStore();


3 Oct 2012, 5:43 PM
You need to review the API for: successProperty and root

There are numerous errors in your code.

These should be used and string values to represent what is sent back in your JSON record.

-What do you see in your return JSON?
-If you use autoSync: true, does it work (without your manual edit function).
-You are calling store.load that is most likely reloading your old data.
-There is no need to call getView().refresh() to see updated data.

Updating should happen automatically by sending your data, server should update table and return JSON should be the new record with root/success set.


Santosh Dhumale
4 Oct 2012, 5:54 AM
Thank you for your reply.

I am able to update the database table while saving or updating the record.

But still it gives old data.

If I tried to update second time it gives last saved record.
But it works properly in firefox.