^1640742911566
@
sname
ColumnModel
slabel
ColumnModel
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.extjs.Ext.util.Observable
smany
true
seditCols
2
sinitialization
false
smodifier
public
Sdescription
#$@text#$@
<p>After the data has been read into the client side cache (<b><a href="file.///F./software/开发/javascript/ext-3.2.1/ext-3.2.1/docs/output/output/Ext.data.Store.html" extcls="Ext.data.Store">Store</a></b>), the ColumnModel is used to configure how and what parts of that data will be displayed in the vertical slices (columns) of the grid. The Ext.grid.ColumnModel Class is the default implementation of a ColumnModel used by implentations of <a href="file///F/software/开发/javascript/ext-3.2.1/ext-3.2.1/docs/output/output/Ext.grid.GridPanel.html" extcls="Ext.grid.GridPanel">GridPanel</a>.</p>
<p>Data is mapped into the store's records and then indexed into the ColumnModel using the <tt><a href="file.///F./software/开发/javascript/ext-3.2.1/ext-3.2.1/docs/output/output/Ext.grid.Column.html#Ext.grid.Column-dataIndex" extcls="Ext.grid.Column" extmember="dataIndex">dataIndex</a></tt></p>
<pre><code>{data source} == mapping ==&gt; {data store} == <b><tt><a href="file.///F./software/开发/javascript/ext-3.2.1/ext-3.2.1/docs/output/output/Ext.grid.Column.html#Ext.grid.Column-dataIndex" extcls="Ext.grid.Column" extmember="dataIndex">dataIndex</a></tt></b> ==&gt; {ColumnModel}</code></pre>
<p>Each <a href="file.///F./software/开发/javascript/ext-3.2.1/ext-3.2.1/docs/output/output/Ext.grid.Column.html" extcls="Ext.grid.Column">Column</a> in the grid's ColumnModel is configured with a <tt><a href="file///F/software/开发/javascript/ext-3.2.1/ext-3.2.1/docs/output/output/Ext.grid.Column.html#Ext.grid.Column-dataIndex" extcls="Ext.grid.Column" extmember="dataIndex">dataIndex</a></tt> to specify how the data within each record in the store is indexed into the ColumnModel.</p>
<p>There are two ways to initialize the ColumnModel class:</p>
#$@text#$@
  @/@24990
  sname
  columns
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.extjs.Ext.grid.GridPanel/@25014
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  Sdescription
#$@text#$@
<div class="short">An Array of object literals.  The config options defined by
Ext.grid.Column are the options which may appear in the o...
#$@text#$@
  sid
  24990
  @/@24991
  sname
  defaultSortable
  stype
  boolean
  sinputtype
  truefalse
  sgroup
  ColumnModel
  sdefault
  false
  Sdescription
#$@text#$@
<div class="short">Default sortable of columns which have no
sortable specified (defaults to false).  This property shall preferably be ...
#$@text#$@
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  24991
  @/@24992
  sname
  defaultWidth
  stype
  number
  sgroup
  ColumnModel
  Sdescription
#$@text#$@
<div class="short">The width of columns which have no width
specified (defaults to 100).  This property shall preferably be configured t...
#$@text#$@
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  24992
  @/@24993
  sname
  defaults
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.extjs.Ext.grid.Column
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  Sdescription
#$@text#$@
<div class="short">Object literal which will be used to apply Ext.grid.Column
configuration options to all columns.  Configuration optio...
#$@text#$@
  sid
  24993
  @/@listeners
  sname
  listeners
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.extjs.ExtThing,xworker.extjs.Ext.util.Observable//@listeners
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  Listeners.grid.ColumnModel
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  false
  sth_mark
  false
  sid
  listeners
    @/@listeners/@columnmoved
    sname
    columnmoved
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.extjs.Function
    smany
    true
    seditCols
    2
    sinitialization
    false
    sgroup
    grid.ColumnModel
    smodifier
    public
    sinheritDescription
    false
    sdescription
    Fires when a column is moved.
    sth_createIndex
    false
    sth_mark
    false
    sid
    columnmoved
      @/@listeners/@columnmoved/@3304
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3304
      @/@listeners/@columnmoved/@3305
      sname
      label
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3305
      @/@listeners/@columnmoved/@3306
      sname
      params
      ssize
      60
      scolspan
      2
      sreadOnly
      false
      sdefault
      this,oldIndex,newIndex
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3306
    @/@listeners/@configchange
    sname
    configchange
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.extjs.Function
    smany
    true
    seditCols
    2
    sinitialization
    false
    sgroup
    grid.ColumnModel
    smodifier
    public
    sinheritDescription
    false
    sdescription
    Fires when the configuration is changed
    sth_createIndex
    false
    sth_mark
    false
    sid
    configchange
      @/@listeners/@configchange/@3308
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3308
      @/@listeners/@configchange/@3309
      sname
      label
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3309
      @/@listeners/@configchange/@3310
      sname
      params
      ssize
      60
      scolspan
      2
      sreadOnly
      false
      sdefault
      this
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3310
    @/@listeners/@headerchange
    sname
    headerchange
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.extjs.Function
    smany
    true
    seditCols
    2
    sinitialization
    false
    sgroup
    grid.ColumnModel
    smodifier
    public
    sinheritDescription
    false
    sdescription
    Fires when the text of a header changes.
    sth_createIndex
    false
    sth_mark
    false
    sid
    headerchange
      @/@listeners/@headerchange/@3312
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3312
      @/@listeners/@headerchange/@3313
      sname
      label
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3313
      @/@listeners/@headerchange/@3314
      sname
      params
      ssize
      60
      scolspan
      2
      sreadOnly
      false
      sdefault
      this,columnIndex,newText
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3314
    @/@listeners/@hiddenchange
    sname
    hiddenchange
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.extjs.Function
    smany
    true
    seditCols
    2
    sinitialization
    false
    sgroup
    grid.ColumnModel
    smodifier
    public
    sinheritDescription
    false
    sdescription
    Fires when a column is hidden or "unhidden".
    sth_createIndex
    false
    sth_mark
    false
    sid
    hiddenchange
      @/@listeners/@hiddenchange/@3316
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3316
      @/@listeners/@hiddenchange/@3317
      sname
      label
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3317
      @/@listeners/@hiddenchange/@3318
      sname
      params
      ssize
      60
      scolspan
      2
      sreadOnly
      false
      sdefault
      this,columnIndex,hidden
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3318
    @/@listeners/@widthchange
    sname
    widthchange
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.extjs.Function
    smany
    true
    seditCols
    2
    sinitialization
    false
    sgroup
    grid.ColumnModel
    smodifier
    public
    sinheritDescription
    false
    Sdescription
#$@text#$@
Fires when the width of a column is programmaticially changed using
setColumnWidth.
Note internal resizing suppresses...
#$@text#$@
    sth_createIndex
    false
    sth_mark
    false
    sid
    widthchange
      @/@listeners/@widthchange/@3320
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3320
      @/@listeners/@widthchange/@3321
      sname
      label
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3321
      @/@listeners/@widthchange/@3322
      sname
      params
      ssize
      60
      scolspan
      2
      sreadOnly
      false
      sdefault
      this,columnIndex,newWidth
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sth_mark
      false
      sid
      3322
