Archive

Posts Tagged ‘directwebremoting’

ExtJS 4 proxy & DWR

July 15, 2011 12 comments

hi guys!

finally we have ExtJS 4 DWR proxy.

the usage is simple!

Ext.define('App.store.SampleStore', {
    extend: 'Ext.data.Store',
    requiers:['Ext.ux.DwrProxy'],
     fields:[
            'name','phone','email'
            ],
    proxy: {
        type: 'dwr',
        //assume that we have dwr function getTestGrid(storeParameters a,Integer b,Integer c)
        //first one goes automatically it includes start,limit,page and other store parameters
        //second and third are optional we pass them through dwrParams as an array
        dwrFunction:dwrTest.getTestGrid,
        dwrParams:[1,2],
        reader: {
            root: 'data',
            totalProperty:'totalCount'
        }

    }

});

any questions?
ask :P