[CLOSED] How to change store's client id property

  1. #1

    [CLOSED] How to change store's client id property

    Hi, i had a store like this:

    .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]
  2. #2
    Hi @keeper,

    I can recommend this:
    storeModels.getRecordsValues({ 
        excludeId: true
    });
  3. #3
    Thank you very much Daniil, worked great.

Similar Threads

  1. Replies: 9
    Last Post: Oct 16, 2012, 12:05 AM
  2. Replies: 3
    Last Post: Dec 26, 2011, 1:32 PM
  3. [CLOSED] How to set StyleSpec and BodyStyle property on client side?
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 24, 2011, 2:14 PM
  4. [CLOSED] How to get TableLayout columns property in client side
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 23
    Last Post: Jan 14, 2011, 9:54 PM
  5. [CLOSED] Change Readonly property on the client
    By sharif in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2010, 12:10 PM

Tags for this Thread

Posting Permissions