/* 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 Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements 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 department at 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":"

Hierarchy

Ext.util.Observable
Ext.grid.ColumnModel

Subclasses

Files

After the data has been read into the client side cache (Store),\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 Ext.grid.ColumnModel Class is the default implementation\nof a ColumnModel used by implentations of GridPanel.

\n\n\n

Data is mapped into the store's records and then indexed into the ColumnModel using the\ndataIndex:

\n\n\n
{data source} == mapping ==> {data store} == dataIndex ==> {ColumnModel}\n
\n\n\n

Each Column in the grid's ColumnModel is configured with a\ndataIndex to specify how the data within\neach record in the store is indexed into the ColumnModel.

\n\n\n

There are two ways to initialize the ColumnModel class:

\n\n\n

Initialization Method 1: an Array

\n\n\n
 var colModel = new Ext.grid.ColumnModel([\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 
\n\n\n

The ColumnModel may be initialized with an Array of Ext.grid.Column column configuration\nobjects to define the initial layout / display of the columns in the Grid. The order of each\nExt.grid.Column 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\nhidden config property (and then shown using the column\nheader menu). Fields that are not included in the ColumnModel will not be displayable at all.

\n\n\n

How each column in the grid correlates (maps) to the Ext.data.Record field in the\nStore the column draws its data from is configured through the\ndataIndex. If the\ndataIndex is not explicitly defined (as shown in the\nexample above) it will use the column configuration's index in the Array as the index.

\n\n\n

See Ext.grid.Column for additional configuration options for each column.

\n\n\n

Initialization Method 2: an Object

\n\n\n

In order to use configuration options from Ext.grid.ColumnModel, an Object may be used to\ninitialize the ColumnModel. The column configuration Array will be specified in the columns\nconfig property. The defaults config property can be used to apply defaults\nfor all columns, e.g.:

\n\n\n
 var colModel = new Ext.grid.ColumnModel({\n    columns: [\n        { header: \"Ticker\", width: 60, menuDisabled: false},\n        { header: \"Company Name\", width: 150, id: 'company'},\n        { header: \"Market Cap.\"},\n        { header: \"$ Sales\", renderer: money},\n        { header: \"Employees\", resizable: false}\n    ],\n    defaults: {\n        sortable: true,\n        menuDisabled: true,\n        width: 100\n    },\n    listeners: {\n        hiddenchange: function(cm, colIndex, hidden) {\n            saveConfig(colIndex, hidden);\n        }\n    }\n});\n 
\n\n\n

In both examples above, the ability to apply a CSS class to all cells in a column (including the\nheader) is demonstrated through the use of the id config\noption. This column could be styled by including the following css:

\n\n\n
 //add this css *after* the core css is loaded\n.x-grid3-td-company {\n    color: red; // entire column will have red font\n}\n// modify the header row only, adding an icon to the column header\n.x-grid3-hd-company {\n    background: transparent\n        url(../../resources/images/icons/silk/building.png)\n        no-repeat 3px 3px ! important;\n        padding-left:20px;\n}\n 
\n\n\n

Note that the \"Company Name\" column could be specified as the\nExt.grid.GridPanel.autoExpandColumn.

\n
Defined By

Config options

Ext.grid.ColumnModel
view source
: Array
An Array of object literals. ...

An Array of object literals. The config options defined by\nExt.grid.Column are the options which may appear in the object literal for each\nindividual column definition.

\n
Ext.grid.ColumnModel
view source
: Boolean
(optional) Default sortable of columns which have no\nsortable specified (defaults to false). ...

(optional) Default sortable of columns which have no\nsortable specified (defaults to false). This property shall preferably be configured\nthrough the defaults config property.

\n

Defaults to: false

Ext.grid.ColumnModel
view source
: Number
(optional) The width of columns which have no width\nspecified (defaults to 100). ...

(optional) The width of columns which have no width\nspecified (defaults to 100). This property shall preferably be configured through the\ndefaults config property.

\n

Defaults to: 100

Ext.grid.ColumnModel
view source
: Object
Object literal which will be used to apply Ext.grid.Column\nconfiguration options to all columns. ...

Object literal which will be used to apply Ext.grid.Column\nconfiguration options to all columns. Configuration options specified with\nindividual column configs will supersede these defaults.

\n
(optional) A config object containing one or more event handlers to be added to this\nobject during initialization. ...

(optional)

A config object containing one or more event handlers to be added to this\nobject during initialization. This should be a valid listeners config object as specified in the\naddListener example for attaching multiple handlers at once.

\n\n

DOM events from ExtJs Components

\n\n\n

While some ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this\n\n\n

is usually only done when extra value can be added. For example the DataView's\nclick event passing the node clicked on. To access DOM\nevents directly from a Component's HTMLElement, listeners must be added to the Element after the Component\nhas been rendered. A plugin can simplify this step:

\n\n
// Plugin is configured with a listeners config object.\n// The Component is appended to the argument list of all handler functions.\nExt.DomObserver = Ext.extend(Object, {\n    constructor: function(config) {\n        this.listeners = config.listeners ? config.listeners : config;\n    },\n\n    // Component passes itself into plugin's init method\n    init: function(c) {\n        var p, l = this.listeners;\n        for (p in l) {\n            if (Ext.isFunction(l[p])) {\n                l[p] = this.createHandler(l[p], c);\n            } else {\n                l[p].fn = this.createHandler(l[p].fn, c);\n            }\n        }\n\n        // Add the listeners to the Element immediately following the render call\n        c.render = c.render.createSequence(function() {\n            var e = c.getEl();\n            if (e) {\n                e.on(l);\n            }\n        });\n    },\n\n    createHandler: function(fn, c) {\n        return function(e) {\n            fn.call(this, e, c);\n        };\n    }\n});\n\nvar combo = new Ext.form.ComboBox({\n\n    // Collapse combo when its element is clicked on\n    plugins: [ new Ext.DomObserver({\n        click: function(evt, comp) {\n            comp.collapse();\n        }\n    })],\n    store: myStore,\n    typeAhead: true,\n    mode: 'local',\n    triggerAction: 'all'\n});\n
\n\n\n

\n
Defined By

Properties

Ext.grid.ColumnModel
view source
: Array
An Array of Column definition objects representing the configuration\nof this ColumnModel. ...

An Array of Column definition objects representing the configuration\nof this ColumnModel. See Ext.grid.Column for the configuration properties that may\nbe specified.

\n
Defined By

Methods

Ext.grid.ColumnModel
view source
new( config ) : Ext.grid.ColumnModel
...
\n

Parameters

  • config : Mixed

    Specify either an Array of Ext.grid.Column configuration objects or specify\na configuration Object (see introductory section discussion utilizing Initialization Method 2 above).

    \n

Returns

Adds the specified events to the list of events which this Observable may fire. ...

Adds the specified events to the list of events which this Observable may fire.

\n

Parameters

  • o : Object|String

    Either an object with event names as properties with a value of true\nor the first event name string if multiple event names are being passed as separate parameters.

    \n
  • Optional : string

    . Event name if multiple event names are being passed as separate parameters.\nUsage:

    \n\n
    this.addEvents('storeloaded', 'storecleared');\n
    \n\n
( eventName, handler, [scope], [options] )
Appends an event handler to this object. ...

Appends an event handler to this object.

\n

Parameters

  • eventName : String

    The name of the event to listen for.

    \n
  • handler : Function

    The method the event invokes.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.

    \n
  • options : Object (optional)

    An object containing handler configuration.\nproperties. This may contain any of the following properties:

      \n
    • scope : Object
      The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.
    • \n
    • delay : Number
      The number of milliseconds to delay the invocation of the handler after the event fires.
    • \n
    • single : Boolean
      True to add a handler to handle just the next firing of the event, and then remove itself.
    • \n
    • buffer : Number
      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is not invoked, but the new handler is scheduled in its place.
    • \n
    • target : Observable
      Only call the handler if the event was fired on the target Observable, not\nif the event was bubbled up from a child Observable.
    • \n

    \n\n

    \nCombining Options
    \nUsing the options argument, it is possible to combine different types of listeners:
    \n
    \nA delayed, one-time listener.\n

    myDataView.on('click', this.onClick, this, {\nsingle: true,\ndelay: 100\n});
    \n

    \nAttaching multiple handlers in 1 call
    \nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

    \n

    myGridPanel.on({\n'click' : {\n    fn: this.onClick,\n    scope: this,\n    delay: 100\n},\n'mouseover' : {\n    fn: this.onMouseOver,\n    scope: this\n},\n'mouseout' : {\n    fn: this.onMouseOut,\n    scope: this\n}\n});
    \n

    \nOr a shorthand syntax:
    \n

    myGridPanel.on({\n'click' : this.onClick,\n'mouseover' : this.onMouseOver,\n'mouseout' : this.onMouseOut,\n scope: this\n});
    \n\n

Ext.grid.ColumnModel
view source
( )
Destroys this column model by purging any event listeners. ...

Destroys this column model by purging any event listeners. Destroys and dereferences all Columns.

\n
Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present. ...

Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present. There is no implementation in the Observable base class.

\n\n\n

This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default\nimplementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to\naccess the required target more quickly.

\n\n\n

Example:

\n\n\n
Ext.override(Ext.form.Field, {\n    //  Add functionality to Field's initComponent to enable the change event to bubble\n    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {\n        this.enableBubble('change');\n    }),\n\n    //  We know that we want Field's events to bubble directly to the FormPanel.\n    getBubbleTarget : function() {\n        if (!this.formPanel) {\n            this.formPanel = this.findParentByType('form');\n        }\n        return this.formPanel;\n    }\n});\n\nvar myForm = new Ext.formPanel({\n    title: 'User Details',\n    items: [{\n        ...\n    }],\n    listeners: {\n        change: function() {\n            // Title goes red if form has been modified.\n            myForm.header.setStyle('color', 'red');\n        }\n    }\n});\n
\n\n

Parameters

  • events : String/Array

    The event name to bubble, or an Array of event names.

    \n
Ext.grid.ColumnModel
view source
( col ) : Number
Finds the index of the first matching column for the given dataIndex. ...

Finds the index of the first matching column for the given dataIndex.

\n

Parameters

  • col : String

    The dataIndex to find

    \n

Returns

  • Number

    The column index, or -1 if no match was found

    \n
( eventName, args ) : Boolean
Fires the specified event with the passed parameters (minus the event name). ...

Fires the specified event with the passed parameters (minus the event name).

\n\n\n

An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget)\nby calling enableBubble.

\n\n

Parameters

  • eventName : String

    The name of the event to fire.

    \n
  • args : Object...

    Variable number of parameters are passed to handlers.

    \n

Returns

  • Boolean

    returns false if any of the handlers return false otherwise it returns true.

    \n
Ext.grid.ColumnModel
view source
( colIndex, rowIndex ) : Ext.Editor
Returns the editor defined for the cell/column. ...

Returns the editor defined for the cell/column.

\n

Parameters

  • colIndex : Number

    The column index

    \n
  • rowIndex : Number

    The row index

    \n

Returns

Ext.grid.ColumnModel
view source
( index )private
...
\n

Parameters

  • index : Object
    \n
Ext.grid.ColumnModel
view source
( id ) : Object
Returns the column for a specified id. ...

Returns the column for a specified id.

\n

Parameters

Returns

  • Object

    the column

    \n
Ext.grid.ColumnModel
view source
( visibleOnly ) : Number
Returns the number of columns. ...

Returns the number of columns.

\n

Parameters

  • visibleOnly : Boolean

    Optional. Pass as true to only include visible columns.

    \n

Returns

Ext.grid.ColumnModel
view source
( col ) : String
Returns the header for the specified column. ...

Returns the header for the specified column.

\n

Parameters

  • col : Number

    The column index

    \n

Returns

Ext.grid.ColumnModel
view source
( index ) : String
Returns the id of the column at the specified index. ...

Returns the id of the column at the specified index.

\n

Parameters

  • index : Number

    The column index

    \n

Returns

Ext.grid.ColumnModel
view source
( col ) : String
Returns the tooltip for the specified column. ...

Returns the tooltip for the specified column.

\n

Parameters

  • col : Number

    The column index

    \n

Returns

Ext.grid.ColumnModel
view source
( col ) : Number
Returns the width for the specified column. ...

Returns the width for the specified column.

\n

Parameters

  • col : Number

    The column index

    \n

Returns

Ext.grid.ColumnModel
view source
( fn, [scope] ) : Array
Returns the column configs that return true by the passed function that is called\nwith (columnConfig, index)\n\n// retu...

Returns the column configs that return true by the passed function that is called\nwith (columnConfig, index)

\n\n
// returns an array of column config objects for all hidden columns\nvar columns = grid.getColumnModel().getColumnsBy(function(c){\n  return c.hidden;\n});\n
\n\n

Parameters

  • fn : Function

    A function which, when passed a Column object, must\nreturn true if the column is to be included in the returned Array.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the function\nis executed. Defaults to this ColumnModel.

    \n

Returns

Ext.grid.ColumnModel
view source
( col ) : String
Returns the dataIndex for the specified column. ...

Returns the dataIndex for the specified column.

\n\n
// Get field name for the column\nvar fieldName = grid.getColumnModel().getDataIndex(columnIndex);\n
\n\n

Parameters

  • col : Number

    The column index

    \n

Returns

  • String

    The column's dataIndex

    \n
Ext.grid.ColumnModel
view source
( id ) : Number
Returns the index for a specified column id. ...

Returns the index for a specified column id.

\n

Parameters

Returns

  • Number

    the index, or -1 if not found

    \n
Ext.grid.ColumnModel
view source
( col ) : Function
Returns the rendering (formatting) function defined for the column. ...

Returns the rendering (formatting) function defined for the column.

\n

Parameters

  • col : Number

    The column index.

    \n

Returns

Ext.grid.ColumnModel
view source
( col )private
...
\n

Parameters

  • col : Object
    \n
Ext.grid.ColumnModel
view source
( includeHidden ) : Number
Returns the total width of all columns. ...

Returns the total width of all columns.

\n

Parameters

  • includeHidden : Boolean

    True to include hidden column widths

    \n

Returns

Checks to see if this object has any listeners for a specified event ...

Checks to see if this object has any listeners for a specified event

\n

Parameters

  • eventName : String

    The name of the event to check for

    \n

Returns

  • Boolean

    True if the event is being listened for, else false

    \n
Ext.grid.ColumnModel
view source
( colIndex, rowIndex ) : Boolean
Returns true if the cell is editable. ...

Returns true if the cell is editable.

\n\n
var store = new Ext.data.Store({...});\nvar colModel = new Ext.grid.ColumnModel({\n  columns: [...],\n  isCellEditable: function(col, row) {\n    var record = store.getAt(row);\n    if (record.get('readonly')) { // replace with your condition\n      return false;\n    }\n    return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n  }\n});\nvar grid = new Ext.grid.GridPanel({\n  store: store,\n  colModel: colModel,\n  ...\n});\n
\n\n

Parameters

  • colIndex : Number

    The column index

    \n
  • rowIndex : Number

    The row index

    \n

Returns

  • Boolean
    \n
Ext.grid.ColumnModel
view source
( colIndex ) : Boolean
Returns true if the column is fixed,\nfalse otherwise. ...

Returns true if the column is fixed,\nfalse otherwise.

\n

Parameters

  • colIndex : Number

    The column index

    \n

Returns

  • Boolean
    \n
Ext.grid.ColumnModel
view source
( colIndex ) : Boolean
Returns true if the column is hidden,\nfalse otherwise. ...

Returns true if the column is hidden,\nfalse otherwise.

\n

Parameters

  • colIndex : Number

    The column index

    \n

Returns

  • Boolean
    \n
Ext.grid.ColumnModel
view source
( col ) : Boolean
Returns true if the specified column menu is disabled. ...

Returns true if the specified column menu is disabled.

\n

Parameters

  • col : Number

    The column index

    \n

Returns

  • Boolean
    \n
Ext.grid.ColumnModel
view source
( colIndex ) : Boolean
Returns true if the column can be resized ...

Returns true if the column can be resized

\n

Parameters

  • colIndex : Object
    \n

Returns

  • Boolean
    \n
Ext.grid.ColumnModel
view source
( col ) : Boolean
Returns true if the specified column is sortable. ...

Returns true if the specified column is sortable.

\n

Parameters

  • col : Number

    The column index

    \n

Returns

  • Boolean
    \n
Ext.grid.ColumnModel
view source
( oldIndex, newIndex )
Moves a column from one position to another. ...

Moves a column from one position to another.

\n

Parameters

  • oldIndex : Number

    The index of the column to move.

    \n
  • newIndex : Number

    The position at which to reinsert the coolumn.

    \n
( eventName, handler, [scope], [options] )
Appends an event handler to this object (shorthand for addListener.) ...

Appends an event handler to this object (shorthand for addListener.)

\n

Parameters

  • eventName : String

    The type of event to listen for

    \n
  • handler : Function

    The method the event invokes

    \n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.

    \n
  • options : Object (optional)

    An object containing handler configuration.

    \n
Removes all listeners for this object ...

Removes all listeners for this object

\n
Relays selected events from the specified Observable as if the events were fired by this. ...

Relays selected events from the specified Observable as if the events were fired by this.

\n

Parameters

  • o : Object

    The Observable whose events this object is to relay.

    \n
  • events : Array

    Array of event names to relay.

    \n
( eventName, handler, [scope] )
Removes an event handler. ...

Removes an event handler.

\n

Parameters

  • eventName : String

    The type of event the handler was associated with.

    \n
  • handler : Function

    The handler to remove. This must be a reference to the function passed into the addListener call.

    \n
  • scope : Object (optional)

    The scope originally specified for the handler.

    \n
Resume firing events. ...

Resume firing events. (see suspendEvents)\nIf events were suspended using the queueSuspended parameter, then all\nevents fired during event suspension will be sent to any listeners now.

\n
Ext.grid.ColumnModel
view source
( col, header )
Sets the header for a column. ...

Sets the header for a column.

\n

Parameters

  • col : Number

    The column index

    \n
  • header : String

    The new header

    \n
Ext.grid.ColumnModel
view source
( col, tooltip )
Sets the tooltip for a column. ...

Sets the tooltip for a column.

\n

Parameters

  • col : Number

    The column index

    \n
  • tooltip : String

    The new tooltip

    \n
Ext.grid.ColumnModel
view source
( col, width, suppressEvent )
Sets the width for a column. ...

Sets the width for a column.

\n

Parameters

  • col : Number

    The column index

    \n
  • width : Number

    The new width

    \n
  • suppressEvent : Boolean

    True to suppress firing the widthchange\nevent. Defaults to false.

    \n
Ext.grid.ColumnModel
view source
( config, initial )
Reconfigures this column model according to the passed Array of column definition objects. ...

Reconfigures this column model according to the passed Array of column definition objects.\nFor a description of the individual properties of a column definition object, see the\nConfig Options.

\n\n\n

Causes the configchange event to be fired. A GridPanel\nusing this ColumnModel will listen for this event and refresh its UI automatically.

\n\n

Parameters

  • config : Array

    Array of Column definition objects.

    \n
  • initial : Boolean

    Specify true to bypass cleanup which deletes the totalWidth\nand destroys existing editors.

    \n
Ext.grid.ColumnModel
view source
( col, dataIndex )
Sets the dataIndex for a column. ...

Sets the dataIndex for a column.

\n

Parameters

  • col : Number

    The column index

    \n
  • dataIndex : String

    The new dataIndex

    \n
Ext.grid.ColumnModel
view source
( col, editable )
Sets if a column is editable. ...

Sets if a column is editable.

\n

Parameters

  • col : Number

    The column index

    \n
  • editable : Boolean

    True if the column is editable

    \n
Ext.grid.ColumnModel
view source
( col, editor )
Sets the editor for a column and destroys the prior editor. ...

Sets the editor for a column and destroys the prior editor.

\n

Parameters

  • col : Number

    The column index

    \n
  • editor : Object

    The editor object

    \n
Ext.grid.ColumnModel
view source
( colIndex, hidden )
Sets if a column is hidden. ...

Sets if a column is hidden.

\n\n
myGrid.getColumnModel().setHidden(0, true); // hide column 0 (0 = the first column).\n
\n\n

Parameters

  • colIndex : Number

    The column index

    \n
  • hidden : Boolean

    True if the column is hidden

    \n
Ext.grid.ColumnModel
view source
( col, fn )
Sets the rendering (formatting) function for a column. ...

Sets the rendering (formatting) function for a column. See Ext.util.Format for some\ndefault formatting functions.

\n

Parameters

  • col : Number

    The column index

    \n
  • fn : Function

    The function to use to process the cell's raw data\nto return HTML markup for the grid view. The render function is called with\nthe following parameters:

      \n
    • value : Object

      The data value for the cell.

    • \n
    • metadata : Object

      An object in which you may set the following attributes:

        \n
      • css : String

        A CSS class name to add to the cell's TD element.

      • \n
      • attr : String

        An HTML attribute definition string to apply to the data container element within the table cell\n(e.g. 'style=\"color:red;\"').

    • \n
    • record : Ext.data.record

      The Ext.data.Record from which the data was extracted.

    • \n
    • rowIndex : Number

      Row index

    • \n
    • colIndex : Number

      Column index

    • \n
    • store : Ext.data.Store

      The Ext.data.Store object from which the Record was extracted.

    \n
Ext.grid.ColumnModel
view source
( col, state )private
Setup any saved state for the column, ensures that defaults are applied. ...

Setup any saved state for the column, ensures that defaults are applied.

\n

Parameters

  • col : Object
    \n
  • state : Object
    \n
Suspend the firing of all events. ...

Suspend the firing of all events. (see resumeEvents)

\n

Parameters

  • queueSuspended : Boolean

    Pass as true to queue up suspended events to be fired\nafter the resumeEvents call instead of discarding all suspended events;

    \n
( eventName, handler, [scope] )
Removes an event handler (shorthand for removeListener.) ...

Removes an event handler (shorthand for removeListener.)

\n

Parameters

  • eventName : String

    The type of event the handler was associated with.

    \n
  • handler : Function

    The handler to remove. This must be a reference to the function passed into the addListener call.

    \n
  • scope : Object (optional)

    The scope originally specified for the handler.

    \n
Defined By

Events

Ext.grid.ColumnModel
view source
( this, oldIndex, newIndex )
Fires when a column is moved. ...

Fires when a column is moved.

\n

Parameters

Ext.grid.ColumnModel
view source
( this )
Fires when the configuration is changed ...

Fires when the configuration is changed

\n

Parameters

  • this : ColumnModel
    \n
Ext.grid.ColumnModel
view source
( this, columnIndex, newText )
Fires when the text of a header changes. ...

Fires when the text of a header changes.

\n

Parameters

  • this : ColumnModel
    \n
  • columnIndex : Number

    The column index

    \n
  • newText : String

    The new header text

    \n
Ext.grid.ColumnModel
view source
( this, columnIndex, hidden )
Fires when a column is hidden or \"unhidden\". ...

Fires when a column is hidden or \"unhidden\".

\n

Parameters

  • this : ColumnModel
    \n
  • columnIndex : Number

    The column index

    \n
  • hidden : Boolean

    true if hidden, false otherwise

    \n
Ext.grid.ColumnModel
view source
( this, columnIndex, newWidth )
Fires when the width of a column is programmaticially changed using\nsetColumnWidth. ...

Fires when the width of a column is programmaticially changed using\nsetColumnWidth.\nNote internal resizing suppresses the event from firing. See also\nExt.grid.GridPanel.columnresize.

\n

Parameters

  • this : ColumnModel
    \n
  • columnIndex : Number

    The column index

    \n
  • newWidth : Number

    The new width

    \n
","superclasses":["Ext.util.Observable"],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"ColumnModel.html#Ext-grid-ColumnModel","filename":"ColumnModel.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.grid.ColumnModel","meta":{},"name":"config","id":"property-config"}],"cfg":[{"tagname":"cfg","owner":"Ext.grid.ColumnModel","meta":{},"name":"columns","id":"cfg-columns"},{"tagname":"cfg","owner":"Ext.grid.ColumnModel","meta":{},"name":"defaultSortable","id":"cfg-defaultSortable"},{"tagname":"cfg","owner":"Ext.grid.ColumnModel","meta":{},"name":"defaultWidth","id":"cfg-defaultWidth"},{"tagname":"cfg","owner":"Ext.grid.ColumnModel","meta":{},"name":"defaults","id":"cfg-defaults"},{"tagname":"cfg","owner":"Ext.util.Observable","meta":{},"name":"listeners","id":"cfg-listeners"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addEvents","id":"method-addEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addListener","id":"method-addListener"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"destroy","id":"method-destroy"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"enableBubble","id":"method-enableBubble"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"findColumnIndex","id":"method-findColumnIndex"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"fireEvent","id":"method-fireEvent"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getCellEditor","id":"method-getCellEditor"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{"private":true},"name":"getColumnAt","id":"method-getColumnAt"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnById","id":"method-getColumnById"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnCount","id":"method-getColumnCount"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnHeader","id":"method-getColumnHeader"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnId","id":"method-getColumnId"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnTooltip","id":"method-getColumnTooltip"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnWidth","id":"method-getColumnWidth"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getColumnsBy","id":"method-getColumnsBy"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getDataIndex","id":"method-getDataIndex"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getIndexById","id":"method-getIndexById"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getRenderer","id":"method-getRenderer"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{"private":true},"name":"getRendererScope","id":"method-getRendererScope"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"getTotalWidth","id":"method-getTotalWidth"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"hasListener","id":"method-hasListener"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"isCellEditable","id":"method-isCellEditable"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"isFixed","id":"method-isFixed"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"isHidden","id":"method-isHidden"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"isMenuDisabled","id":"method-isMenuDisabled"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"isResizable","id":"method-isResizable"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"isSortable","id":"method-isSortable"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"moveColumn","id":"method-moveColumn"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"on","id":"method-on"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"purgeListeners","id":"method-purgeListeners"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"relayEvents","id":"method-relayEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"removeListener","id":"method-removeListener"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"resumeEvents","id":"method-resumeEvents"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setColumnHeader","id":"method-setColumnHeader"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setColumnTooltip","id":"method-setColumnTooltip"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setColumnWidth","id":"method-setColumnWidth"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setConfig","id":"method-setConfig"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setDataIndex","id":"method-setDataIndex"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setEditable","id":"method-setEditable"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setEditor","id":"method-setEditor"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setHidden","id":"method-setHidden"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{},"name":"setRenderer","id":"method-setRenderer"},{"tagname":"method","owner":"Ext.grid.ColumnModel","meta":{"private":true},"name":"setState","id":"method-setState"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"suspendEvents","id":"method-suspendEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"un","id":"method-un"}],"event":[{"tagname":"event","owner":"Ext.grid.ColumnModel","meta":{},"name":"columnmoved","id":"event-columnmoved"},{"tagname":"event","owner":"Ext.grid.ColumnModel","meta":{},"name":"configchange","id":"event-configchange"},{"tagname":"event","owner":"Ext.grid.ColumnModel","meta":{},"name":"headerchange","id":"event-headerchange"},{"tagname":"event","owner":"Ext.grid.ColumnModel","meta":{},"name":"hiddenchange","id":"event-hiddenchange"},{"tagname":"event","owner":"Ext.grid.ColumnModel","meta":{},"name":"widthchange","id":"event-widthchange"}],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.grid.ColumnModel","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.grid.ColumnModel","mixins":[],"mixedInto":[]});