bonetiu
20 Nov 2012, 10:04 PM
hello everyone,
first of all i'm using extjs version 4.1.1a.
i got a running grid with a data store attached that uses a data model. Inside the model i have a proxy api defined for the read/create/update/destroy operations.
The grid is using a
plugins: [
Ext.create('Ext.grid.plugin.CellEditing',{
pluginId: 'propertiesGridEditor',
clicksToEdit: 1
})
],
config feature.
Now let's go on with the problem:
- when i add data to the store, by grid.store.add({ //model fields with values}), the grid comes up with the new record added, apparently everything worked ok, but, the data model api create action is called twice with the same post data. My guess is that the cell editor plugin fires some event right after the new row has been added and i have no idea how to get around this issue.
If i take out the plugin and add a button, for example, that calls the store add method, then everything is O.K., the create method is called only once.
please help.
thanx for reading,
-Bogdan
first of all i'm using extjs version 4.1.1a.
i got a running grid with a data store attached that uses a data model. Inside the model i have a proxy api defined for the read/create/update/destroy operations.
The grid is using a
plugins: [
Ext.create('Ext.grid.plugin.CellEditing',{
pluginId: 'propertiesGridEditor',
clicksToEdit: 1
})
],
config feature.
Now let's go on with the problem:
- when i add data to the store, by grid.store.add({ //model fields with values}), the grid comes up with the new record added, apparently everything worked ok, but, the data model api create action is called twice with the same post data. My guess is that the cell editor plugin fires some event right after the new row has been added and i have no idea how to get around this issue.
If i take out the plugin and add a button, for example, that calls the store add method, then everything is O.K., the create method is called only once.
please help.
thanx for reading,
-Bogdan