git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
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
8a06d3d
..
9bc0aa1
100644
(file)
--- 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: [
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'
},
property: 'name',
value: 'Ed'
},
- groupers: {
- // group the users by age in ascending order
- property: 'age',
- direction: 'ASC'
- },
+ groupField: 'age',
+ groupDir: 'DESC',
proxy: {
type: 'ajax',
proxy: {
type: 'ajax',