Jul 08, 2015, 11:54 AM
[CLOSED] How to change store's client id property
Hi, i had a store like this:
Descripcion: 1
DescripcionName: "Administrativo"
Id: 317
Prioridad: 3
id: "ext-57-1"
i send this store data throug a proxy like this
Hope someone can help me.
Thanks in advance
.Store(x.StoreFor<Entity>()
.AutoLoad(true)
.DataSource(Model)
)
when I get the store records in cliente like this:var storeModels = window.Ext.ComponentMgr.get("gpModels").getStore();
var objModels = window.Ext.pluck(storeModels.data.items, "data");
in objModels I get something like this:Descripcion: 1
DescripcionName: "Administrativo"
Id: 317
Prioridad: 3
id: "ext-57-1"
i send this store data throug a proxy like this
window.Ext.Ajax.request({
url: controllerAction,
method: "POST",
cleanRequest: true,
params: {
'modelos': window.Ext.encode(objModels),
})
i need to remove or change store's clientId property, this way dont conflict with the id of Model when deserialize on controller like this:var models = JSON.Deserialize<List<Entity>>(modelos);
Hope someone can help me.
Thanks in advance
Last edited by Daniil; Jul 10, 2015 at 12:59 PM.
Reason: [CLOSED]