RouteExtStore.js 764 Bytes
var writer = new Ext.data.JsonWriter({
    type: 'json',
    encode: false,
    listful: true,
    writeAllFields: true,
    returnJson: true
});

var reader = new Ext.data.JsonReader({
    totalProperty: 'total',
    successProperty: 'success',
    idProperty: 'id',
    root: 'routeext'
});

var proxy = new Ext.data.HttpProxy({
    reader: reader,
    writer: writer,
    type: 'ajax',
    api: {
       // read: '/api/Routs/GetExtRoute'
	    read: '/api/Routs/GetExtRoute'
    },
    headers: {
        'Content-Type': 'application/json; charset=UTF-8'
    }
});

Ext.define('App.store.RouteExtStore', {
    extend: 'Ext.data.Store',
    model: 'App.model.RouteExt',
    pageSize: 10,
    autoLoad: false,
    paramsAsHash: true,
    proxy: proxy
 
});