this.proxy has no properties (Grid) (JsonStore)

  • Heya!

    I'm receiving the 'this.proxy has no properties' error when i execute my grid. I can't find the error on the code:


    var gridData = {
    data: [{
    NAME: "Someone name",
    ORG: "Organization",
    UPTODATE: 'true',
    REGNUM: '8448579557',
    BIRTH: "05/01/1976",
    GENDER: "M",
    }
    ]
    }

    var gridRecord = new Ext.data.Record.create([
    {name: 'NAME', type: 'string'},
    {name: 'ORG'},
    {name: 'UPTODATE', type: 'bool'},
    {name: 'REGNUM', type: 'string'},
    {name: 'BIRTH', type: 'date', dateFormat: 'm/d/Y'},
    {name: 'GENDER'}
    ]);

    var store = new Ext.data.JsonStore({
    data: gridData,
    fields: gridRecord,
    reader: new Ext.data.JsonReader({
    root: 'data'
    }, gridRecord),
    });
    store.load();



    I appreciate any help!


  • Thanks! i removed the store.load(), now there is no errors, but the data isn't in the grid


  • I believe it's occurring when you're calling store.load().

    From a quick look at the source code, you shouldn't need to call load if you've already specified the data, which is causing the error.


  • Solved!

    i removed the JsonReader, and put an ROOT propertie to JsonStore. the next code is working!

    var gridData = {
    data: [{
    NAME: "Someone name",
    ORG: "Organization",
    UPTODATE: 'true',
    REGNUM: '8448579557',
    BIRTH: "05/01/1976",
    GENDER: "M",
    }
    ]
    }

    var gridRecord = new Ext.data.Record.create([
    {name: 'NAME', type: 'string'},
    {name: 'ORG'},
    {name: 'UPTODATE', type: 'bool'},
    {name: 'REGNUM', type: 'string'},
    {name: 'BIRTH', type: 'date', dateFormat: 'm/d/Y'},
    {name: 'GENDER'}
    ]);

    var store = new Ext.data.JsonStore({
    data: gridData,
    fields: gridRecord,
    root: 'data'
    });







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about this.proxy has no properties (Grid) (JsonStore) , Please add it free.

    My rights and duties- employer asks me to provide testimony in its civil lawsuit TU Settlement - Credit Inqury on my credit report