Hi all ,

I have a store as below.
Code:
Ext.define('tpsyndev.store.tempPartyRelations', {
    extend: 'Ext.data.Store',
    alias: 'widget.tempPartiesRelations',
    model:'tpsyndev.model.TempPartyRelation',
    autoLoad: false,
    pageSize: 4,
    proxy: {
        type: 'ajax',
        url : '/tpsyndev/MainLayout/dgetTempPartyRelations',
        reader: {
            type: 'json',
            root: 'data',
            gridcolumns: 'gridcolumns',
        }
    }
});

I am returing following response from server when the store loads.

Code:
{"gridcolumns:["CustomerNumber","SupplierNumber","Party1ItemNumber","Party2ItemNumber","ItemDescription","Currency","BaseUOM","Price","StartDate","EndDate","ActiveFlag","validationErrors"],"data":[{"class":"tpsyndev.TempDomainToFetchData","id":null,"activeFlag":"Y","baseUOM":"EA","currency":"USD","customerNumber":"","endDate":null,"itemDescripton":"BestBuyItem123","party1Id":null,"party1ItemNumber":"","party2Id":null,"party2ItemNumber":"uyhln","price":100.23,"processRunDetailsId":15,"startDate":"2012-11-07T08:41:09Z","supplierNumber":"","validations":"Please provide supplier number at row number 1 Column number 2Please provide customer number at row number 1column number 1Unknown Sponsor party at row number 1Please enter valid party1itemnumber number at row number 1column number 3"}]}
I have to reconfigure my grid on an event .The columns should be same as the gridcolumns: list in the json response .How can i do this .