X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/docs/output/Ext.grid.GroupingView.html diff --git a/docs/output/Ext.grid.GroupingView.html b/docs/output/Ext.grid.GroupingView.html index 777c5759..3175577b 100644 --- a/docs/output/Ext.grid.GroupingView.html +++ b/docs/output/Ext.grid.GroupingView.html @@ -1,63 +1,63 @@ -
Observable
  GridView
    GroupingView

Class Ext.grid.GroupingView

Package:Ext.grid
Defined In:GroupingView.js
Class:GroupingView
Extends:GridView
Adds the ability for single level grouping to the grid. A GroupingStore -must be used to enable grouping. Some grouping characteristics may also be configured at the -Column level -

Sample usage:

-

-var grid = new Ext.grid.GridPanel({
-    // A groupingStore is required for a GroupingView

-    store: new Ext.data.GroupingStore({
-        autoDestroy: true,
-        reader: reader,
-        data: xg.dummyData,
-        sortInfo: {field: 'company', direction: 'ASC'},
-        groupOnSort: true,
-        remoteGroup: true,
-        groupField: 'industry'
-    }),
-    colModel: new Ext.grid.ColumnModel({
-        columns:[
-            {id:'company',header: 'Company', width: 60, dataIndex: 'company'},
-            // groupable, groupName, groupRender are also configurable at column level

-            {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price', groupable: false},
-            {header: 'Change', dataIndex: 'change', renderer: Ext.util.Format.usMoney},
-            {header: 'Industry', dataIndex: 'industry'},
-            {header: 'Last Updated', renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
-        ],
-        defaults: {
-            sortable: true,
-            menuDisabled: false,
-            width: 20
-        }
-    }),
-
-    view: new Ext.grid.GroupingView({
-        forceFit: true,
-        // custom grouping text template to display the number of items per group

-        groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
-    }),
-
-    frame:true,
-    width: 700,
-    height: 450,
-    collapsible: true,
-    animCollapse: false,
-    title: 'Grouping Example',
-    iconCls: 'icon-grid',
-    renderTo: document.body
+
Observable
  GridView
    GroupingView

Class Ext.grid.GroupingView

Package:Ext.grid
Defined In:GroupingView.js
Class:GroupingView
Extends:GridView
Adds the ability for single level grouping to the grid. A GroupingStore +must be used to enable grouping. Some grouping characteristics may also be configured at the +Column level +

Sample usage:

+
var grid = new Ext.grid.GridPanel({
+    // A groupingStore is required for a GroupingView
+    store: new Ext.data.GroupingStore({
+        autoDestroy: true,
+        reader: reader,
+        data: xg.dummyData,
+        sortInfo: {field: 'company', direction: 'ASC'},
+        groupOnSort: true,
+        remoteGroup: true,
+        groupField: 'industry'
+    }),
+    colModel: new Ext.grid.ColumnModel({
+        columns:[
+            {id:'company',header: 'Company', width: 60, dataIndex: 'company'},
+            // groupable, groupName, groupRender are also configurable at column level
+            {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price', groupable: false},
+            {header: 'Change', dataIndex: 'change', renderer: Ext.util.Format.usMoney},
+            {header: 'Industry', dataIndex: 'industry'},
+            {header: 'Last Updated', renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
+        ],
+        defaults: {
+            sortable: true,
+            menuDisabled: false,
+            width: 20
+        }
+    }),
+
+    view: new Ext.grid.GroupingView({
+        forceFit: true,
+        // custom grouping text template to display the number of items per group
+        groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
+    }),
+
+    frame:true,
+    width: 700,
+    height: 450,
+    collapsible: true,
+    animCollapse: false,
+    title: 'Grouping Example',
+    iconCls: 'icon-grid',
+    renderTo: document.body
 });

Config Options

Config OptionsDefined By
 cellSelector : String
The selector used to find cells internally (defaults to 'td.x-grid3-cell')
GridView
 cellSelectorDepth : Number
The number of levels to search for cells in event delegation (defaults to 4)
GridView
 columnsText : String
The text displayed in the 'Columns' menu item (defaults to 'Columns')
GridView
 deferEmptyText : Boolean
True to defer emptyText being applied until the store's -first load (defaults to true).
GridView
 groupByText : String
Text displayed in the grid header menu for grouping by a column -(defaults to 'Group By This Field').
GroupingView
 groupRenderer : Function
This property must be configured in the Ext.grid.Column for -each column.
GroupingView
 groupByText : String
Text displayed in the grid header menu for grouping by a column +(defaults to 'Group By This Field').
GroupingView
 groupRenderer : Function
This property must be configured in the Ext.grid.Column for +each column.
GroupingView
 showGroupsText : String
Text displayed in the grid header for enabling/disabling grouping + }
GridView
 showGroupsText : String
Text displayed in the grid header for enabling/disabling grouping (defaults to 'Show in Groups').
GroupingView
 sortAscText : String
The text displayed in the 'Sort Ascending' menu item (defaults to 'Sort Ascending')
GridView
 sortClasses : Array
The CSS classes applied to a header when it is sorted. (defaults to ['sort-asc', 'sort-desc'])
GridView
 sortDescText : String
The text displayed in the 'Sort Descending' menu item (defaults to 'Sort Descending')
GridView
 startCollapsed : Boolean
true to start all groups collapsed (defaults to false)
GroupingView

Public Properties

PropertyDefined By