X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/docs/guides/data/examples/sorting_grouping_filtering_store/app.js diff --git a/docs/guides/data/examples/sorting_grouping_filtering_store/app.js b/docs/guides/data/examples/sorting_grouping_filtering_store/app.js index 8a06d3dc..9bc0aa14 100644 --- a/docs/guides/data/examples/sorting_grouping_filtering_store/app.js +++ b/docs/guides/data/examples/sorting_grouping_filtering_store/app.js @@ -11,8 +11,11 @@ Ext.define('User', { extend: 'Ext.data.Model', fields: [ - {name: 'id', type: 'int'}, - {name: 'name', type: 'string'} + { name: 'id', type: 'int' }, + { name: 'name', type: 'string' }, + { name: 'age', type: 'int' }, + { name: 'bob', type: 'int' } + ] }); @@ -29,11 +32,8 @@ Ext.onReady(function() { property: 'name', value: 'Ed' }, - groupers: { - // group the users by age in ascending order - property: 'age', - direction: 'ASC' - }, + groupField: 'age', + groupDir: 'DESC', proxy: { type: 'ajax',