|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_grid_GroupingView({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.grid.GridView","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.grid.GridView' rel='Ext.grid.GridView' class='docClass'>Ext.grid.GridView</a><div class='subclass '><strong>Ext.grid.GroupingView</strong></div></div></div><h4>Files</h4><div class='dependency'><a href='source/GroupingView.html#Ext-grid-GroupingView' target='_blank'>GroupingView.js</a></div></pre><div class='doc-contents'><p>Adds the ability for single level grouping to the grid. A <a href=\"#!/api/Ext.data.GroupingStore\" rel=\"Ext.data.GroupingStore\" class=\"docClass\">GroupingStore</a>\nmust be used to enable grouping. Some grouping characteristics may also be configured at the\n<a href=\"#!/api/Ext.grid.Column\" rel=\"Ext.grid.Column\" class=\"docClass\">Column level</a><div class=\"mdetail-params\"><ul>\n<li><code><a href=\"#!/api/Ext.grid.Column-cfg-emptyGroupText\" rel=\"Ext.grid.Column-cfg-emptyGroupText\" class=\"docClass\">emptyGroupText</a></code></li>\n<li><code><a href=\"#!/api/Ext.grid.Column-cfg-groupable\" rel=\"Ext.grid.Column-cfg-groupable\" class=\"docClass\">groupable</a></code></li>\n<li><code><a href=\"#!/api/Ext.grid.Column-cfg-groupName\" rel=\"Ext.grid.Column-cfg-groupName\" class=\"docClass\">groupName</a></code></li>\n<li><code>groupRender</code></li>\n</ul></div></p>\n\n<p>Sample usage:</p>\n\n\n<pre><code>var grid = new <a href=\"#!/api/Ext.grid.GridPanel\" rel=\"Ext.grid.GridPanel\" class=\"docClass\">Ext.grid.GridPanel</a>({\n // A groupingStore is required for a GroupingView\n store: new <a href=\"#!/api/Ext.data.GroupingStore\" rel=\"Ext.data.GroupingStore\" class=\"docClass\">Ext.data.GroupingStore</a>({\n autoDestroy: true,\n reader: reader,\n data: xg.dummyData,\n sortInfo: {field: 'company', direction: 'ASC'},\n <a href=\"#!/api/Ext.data.GroupingStore-cfg-groupOnSort\" rel=\"Ext.data.GroupingStore-cfg-groupOnSort\" class=\"docClass\">groupOnSort</a>: true,\n <a href=\"#!/api/Ext.data.GroupingStore-cfg-remoteGroup\" rel=\"Ext.data.GroupingStore-cfg-remoteGroup\" class=\"docClass\">remoteGroup</a>: true,\n <a href=\"#!/api/Ext.data.GroupingStore-cfg-groupField\" rel=\"Ext.data.GroupingStore-cfg-groupField\" class=\"docClass\">groupField</a>: 'industry'\n }),\n colModel: new <a href=\"#!/api/Ext.grid.ColumnModel\" rel=\"Ext.grid.ColumnModel\" class=\"docClass\">Ext.grid.ColumnModel</a>({\n columns:[\n {id:'company',header: 'Company', width: 60, dataIndex: 'company'},\n // <a href=\"#!/api/Ext.grid.Column-cfg-groupable\" rel=\"Ext.grid.Column-cfg-groupable\" class=\"docClass\">groupable</a>, <a href=\"#!/api/Ext.grid.Column-cfg-groupName\" rel=\"Ext.grid.Column-cfg-groupName\" class=\"docClass\">groupName</a>, groupRender are also configurable at column level\n {header: 'Price', renderer: <a href=\"#!/api/Ext.util.Format-method-usMoney\" rel=\"Ext.util.Format-method-usMoney\" class=\"docClass\">Ext.util.Format.usMoney</a>, dataIndex: 'price', <a href=\"#!/api/Ext.grid.Column-cfg-groupable\" rel=\"Ext.grid.Column-cfg-groupable\" class=\"docClass\">groupable</a>: false},\n {header: 'Change', dataIndex: 'change', renderer: <a href=\"#!/api/Ext.util.Format-method-usMoney\" rel=\"Ext.util.Format-method-usMoney\" class=\"docClass\">Ext.util.Format.usMoney</a>},\n {header: 'Industry', dataIndex: 'industry'},\n {header: 'Last Updated', renderer: <a href=\"#!/api/Ext.util.Format-method-dateRenderer\" rel=\"Ext.util.Format-method-dateRenderer\" class=\"docClass\">Ext.util.Format.dateRenderer</a>('m/d/Y'), dataIndex: 'lastChange'}\n ],\n defaults: {\n sortable: true,\n menuDisabled: false,\n width: 20\n
|