Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / docs / guides / data / examples / sorting_grouping_filtering_store / app.js
index 8a06d3d..9bc0aa1 100644 (file)
 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',