gxp.grid.FeatureGrid¶
- class gxp.grid.FeatureGrid(config)¶
Create a new grid displaying the contents of a GeoExt.data.FeatureStore .
Config Options¶
Configuration properties in addition to those listed for Ext.grid.GridPanel.
- columnConfig
Object Property name/config pairs. Any additional config that should be used on the column, such as making a column non-editable by specifying editable: false
- columnmenuDisabled
Boolean Should the column menu be disabled? Default is false.
- columnsSortable
Boolean Should fields in the grid be sortable? Default is true.
- customEditors
Object Property name/editor pairs. If specified for a field name, the custom editor will be used instead of the standard textfield.
- customRenderers
Object Property name/renderer pairs. If specified for a field name, the custom renderer will be used instead of the type specific one.
- dateFormat
String Date format. Default is the value of Ext.form.DateField.prototype.format.
- fieldVisibility
Object Property name/visibility name pairs. Optional. If specified, only columns with a value of true will be initially shown.
- ignoreFields
Array of field names from the store’s records that should not be displayed in the grid.
- includeFields
Array of field names from the store’s records that should be displayed in the grid. All other fields will be ignored.
- layer
OpenLayers.Layer.Vector The vector layer that will be synchronized with the layer store. If the map config property is provided, this value will be ignored.
- map
OpenLayers.Map If provided, a layer with the features from this grid will be added to the map.
- propertyNames
Object Property name/display name pairs. If specified, the display name will be shown as column header instead of the property name.
- schema
GeoExt.data.AttributeStore Optional schema for the grid. If provided, appropriate field renderers (e.g. for date or boolean fields) will be used.
- timeFormat
String Time format. Default is the value of Ext.form.TimeField.prototype.format.
Public Methods¶
Public methods in addition to those listed for Ext.grid.GridPanel.
- FeatureGrid.getColumns()¶
Parameters: store – GeoExt.data.FeatureStore Returns: Array Gets the configuration for the column model.
- FeatureGrid.initComponent()¶
Initializes the FeatureGrid.
- FeatureGrid.setStore()¶
Parameters: - store – GeoExt.data.FeatureStore
- schema – GeoExt.data.AttributeStore Optional schema to determine appropriate field renderers for the grid.
Sets the store for this grid, reconfiguring the column model