|
|
/*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_ColumnModel({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.grid.PropertyColumnModel"],"extends":"Ext.util.Observable","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 '><strong>Ext.grid.ColumnModel</strong></div></div><h4>Subclasses</h4><div class='dependency'><a href='#!/api/Ext.grid.PropertyColumnModel' rel='Ext.grid.PropertyColumnModel' class='docClass'>Ext.grid.PropertyColumnModel</a></div><h4>Files</h4><div class='dependency'><a href='source/ColumnModel.html#Ext-grid-ColumnModel' target='_blank'>ColumnModel.js</a></div></pre><div class='doc-contents'><p>After the data has been read into the client side cache (<b><a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Store</a></b>),\nthe ColumnModel is used to configure how and what parts of that data will be displayed in the\nvertical slices (columns) of the grid. The <a href=\"#!/api/Ext.grid.ColumnModel\" rel=\"Ext.grid.ColumnModel\" class=\"docClass\">Ext.grid.ColumnModel</a> Class is the default implementation\nof a ColumnModel used by implentations of <a href=\"#!/api/Ext.grid.GridPanel\" rel=\"Ext.grid.GridPanel\" class=\"docClass\">GridPanel</a>.</p>\n\n\n<p>Data is mapped into the store's records and then indexed into the ColumnModel using the\n<tt><a href=\"#!/api/Ext.grid.Column-cfg-dataIndex\" rel=\"Ext.grid.Column-cfg-dataIndex\" class=\"docClass\">dataIndex</a></tt>:</p>\n\n\n<pre><code>{data source} == mapping ==> {data store} == <b><tt><a href=\"#!/api/Ext.grid.Column-cfg-dataIndex\" rel=\"Ext.grid.Column-cfg-dataIndex\" class=\"docClass\">dataIndex</a></tt></b> ==> {ColumnModel}\n</code></pre>\n\n\n<p>Each <a href=\"#!/api/Ext.grid.Column\" rel=\"Ext.grid.Column\" class=\"docClass\">Column</a> in the grid's ColumnModel is configured with a\n<tt><a href=\"#!/api/Ext.grid.Column-cfg-dataIndex\" rel=\"Ext.grid.Column-cfg-dataIndex\" class=\"docClass\">dataIndex</a></tt> to specify how the data within\neach record in the store is indexed into the ColumnModel.</p>\n\n\n<p>There are two ways to initialize the ColumnModel class:</p>\n\n\n<p><u>Initialization Method 1: an Array</u></p>\n\n\n<pre><code> var colModel = new <a href=\"#!/api/Ext.grid.ColumnModel\" rel=\"Ext.grid.ColumnModel\" class=\"docClass\">Ext.grid.ColumnModel</a>([\n { header: \"Ticker\", width: 60, sortable: true},\n { header: \"Company Name\", width: 150, sortable: true, id: 'company'},\n { header: \"Market Cap.\", width: 100, sortable: true},\n { header: \"$ Sales\", width: 100, sortable: true, renderer: money},\n { header: \"Employees\", width: 100, sortable: true, resizable: false}\n ]);\n </code></pre>\n\n\n<p>The ColumnModel may be initialized with an Array of <a href=\"#!/api/Ext.grid.Column\" rel=\"Ext.grid.Column\" class=\"docClass\">Ext.grid.Column</a> column configuration\nobjects to define the initial layout / display of the columns in the Grid. The order of each\n<a href=\"#!/api/Ext.grid.Column\" rel=\"Ext.grid.Column\" class=\"docClass\">Ext.grid.Column</a> column configuration object within the specified Array defines the initial\norder of the column display. A Column's display may be initially hidden using the\n<tt><a href=\"#!/api/Ext.grid.Column-cfg-hidden\" rel=\"Ext.grid.Column-cfg-hidden\" class=\"docClass\">hidden</a></tt></b> config property (and then shown using the column\nheader menu). Fields that are not included in the ColumnModel will not be displayable at all.</p>\n\n\n<p>How each column in the grid correlates (maps) to the <a href=\"#!/api/Ext.data.Record\" rel=\"Ext.data.Record\" class=\"docClass\">Ext.data.Record</a> field in the\n<a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Store</a> the column draws its data from is configured through the\n<b><tt><a href=\"#!/api/Ext.grid.Column-cfg-dataIndex\" rel=\"Ext.grid.Column-cfg-dataIndex\"
|