1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    18
    Vote Rating
    0
    Georgioa is on a distinguished road

      0  

    Default [Solved]DynamicGridPanel with DirectStore

    [Solved]DynamicGridPanel with DirectStore


    Hi !
    I'm trying to do a dynamic GridPanel based on Erhan's : http://extjs.com/forum/showthread.php?t=58493

    I want to use a DirectStore to have only an api configuration to my extension.

    So the question is : How can I load metaData + Data from my server and get them to configure my store?

    I tried this :

    Code:
        var rdg = new RemoteDataGrid({
            ds:new Ext.data.DirectStore({
                api:{
                    read    : DataGridControler.loadData
                },
                fields:[]
            })
        });
    My DataGridControler.loadData returns something like :
    Code:
    {"result":[{
    "metaData":{
    "totalProperty":"total",
    "root":"records",
    "id":"id",
    "fields":[{"name":"colonne1","type":"string"}],
    "sortInfo":{}
    }
    "success":true,
    "total":2,
    "records":[{"colonne1":"Test1"}],
    "columns":[{
    "id":"colonne1",
    "hidden":"false",
    "dataIndex":"colonne1",
    "header":"colonne1"
    }]
    }], "tid":2,"action":"DataGridControler","method":"loadData","type":"rpc"}
    The problem is that metachange event and load event are not fired. So I can't do anything when I get my object back from the server.

    Can I change my meta using DirectStore in this way?
    Last edited by Georgioa; 11 Aug 2009 at 4:07 AM. Reason: Solved : You can change metaData by returning a metaData Object as descibed in this post.... with a store correctly configured

  2. #2
    Ext JS Premium Member bregard's Avatar
    Join Date
    Jul 2008
    Posts
    26
    Vote Rating
    0
    bregard is on a distinguished road

      0  

    Default Solution?

    Solution?


    Just looking for the solution to this [SOLVED] topic. Thanks.

  3. #3
    Ext JS Premium Member bregard's Avatar
    Join Date
    Jul 2008
    Posts
    26
    Vote Rating
    0
    bregard is on a distinguished road

      0  

    Default Oops ...

    Oops ...


    Oops ... found it .... guess its really tiny ..

  4. #4
    Ext User
    Join Date
    Feb 2009
    Location
    Bangalore
    Posts
    7
    Vote Rating
    0
    chandru.samp is on a distinguished road

      0  

    Thumbs up Cheers!!

    Cheers!!


    Would mind sharing it?

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar