Ext JS 3.4.0 Sencha Docs

Ext.grid.GridView

Hierarchy

Ext.util.Observable
Ext.grid.GridView

Subclasses

Files

This class encapsulates the user interface of an Ext.grid.GridPanel. Methods of this class may be used to access user interface elements to enable special display effects. Do not change the DOM structure of the user interface.

This class does not provide ways to manipulate the underlying data. The data model of a Grid is held in an Ext.data.Store.

Available since: 1.1.0

Defined By

Config options

Ext.grid.GridView
view source
: Boolean
Defaults to false. ...

Defaults to false. Specify true to have the column widths re-proportioned when the grid is initially rendered. The initially configured width of each column will be adjusted to fit the grid width and prevent horizontal scrolling. If columns are later resized (manually or programmatically), the other columns in the grid will not be resized to fit the grid width. See forceFit also.

Defaults to: false

Available since: 2.3.0

Ext.grid.GridView
view source
: String
The selector used to find cells internally (defaults to 'td.x-grid3-cell') ...

The selector used to find cells internally (defaults to 'td.x-grid3-cell')

Defaults to: 'td.x-grid3-cell'

Available since: 2.3.0

The number of levels to search for cells in event delegation (defaults to 4) ...

The number of levels to search for cells in event delegation (defaults to 4)

Defaults to: 4

Available since: 2.3.0

Ext.grid.GridView
view source
: String
The text displayed in the 'Columns' menu item (defaults to 'Columns') ...

The text displayed in the 'Columns' menu item (defaults to 'Columns')

Defaults to: 'Columns'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Boolean
True to defer emptyText being applied until the store's first load (defaults to true). ...

True to defer emptyText being applied until the store's first load (defaults to true).

Defaults to: true

Available since: 2.3.0

Ext.grid.GridView
view source
: String
Default text (html tags are accepted) to display in the grid body when no rows are available (defaults to ''). ...

Default text (html tags are accepted) to display in the grid body when no rows are available (defaults to ''). This value will be used to update the mainBody:

    this.mainBody.update('<div class="x-grid-empty">' + this.emptyText + '</div>');
    

Available since: 2.3.0

Ext.grid.GridView
view source
: Boolean
True to add a second TR element per row that can be used to provide a row body that spans beneath the data row. ...

True to add a second TR element per row that can be used to provide a row body that spans beneath the data row. Use the getRowClass method's rowParams config to customize the row body.

Available since: 2.3.0

Ext.grid.GridView
view source
: Boolean
Defaults to false. ...

Defaults to false. Specify true to have the column widths re-proportioned at all times.

The initially configured width of each column will be adjusted to fit the grid width and prevent horizontal scrolling. If columns are later resized (manually or programmatically), the other columns in the grid will be resized to fit the grid width.

Columns which are configured with fixed: true are omitted from being resized.

See autoFill.

Defaults to: false

Available since: 2.3.0

Ext.grid.GridView
view source
: String
The CSS class to add to the header cell when its menu is visible. ...

The CSS class to add to the header cell when its menu is visible. Defaults to 'x-grid3-hd-menu-open'

Defaults to: 'x-grid3-hd-menu-open'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Boolean
True to disable the grid column headers (defaults to false). ...

True to disable the grid column headers (defaults to false). Use the ColumnModel menuDisabled config to disable the menu for individual columns. While this config is true the following will be disabled:

  • clicking on header to sort
  • the trigger to reveal the menu.

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Boolean
True to hide the sorting icons if sorting is disabled for a column. ...

True to hide the sorting icons if sorting is disabled for a column. Defaults to false

Defaults to: false

Available since: Ext JS 3.4.0

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

(optional)

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


DOM events from ExtJs Components


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

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

// Plugin is configured with a listeners config object.
// The Component is appended to the argument list of all handler functions.
Ext.DomObserver = Ext.extend(Object, {
    constructor: function(config) {
        this.listeners = config.listeners ? config.listeners : config;
    },

    // Component passes itself into plugin's init method
    init: function(c) {
        var p, l = this.listeners;
        for (p in l) {
            if (Ext.isFunction(l[p])) {
                l[p] = this.createHandler(l[p], c);
            } else {
                l[p].fn = this.createHandler(l[p].fn, c);
            }
        }

        // Add the listeners to the Element immediately following the render call
        c.render = c.render.createSequence(function() {
            var e = c.getEl();
            if (e) {
                e.on(l);
            }
        });
    },

    createHandler: function(fn, c) {
        return function(e) {
            fn.call(this, e, c);
        };
    }
});

var combo = new Ext.form.ComboBox({

    // Collapse combo when its element is clicked on
    plugins: [ new Ext.DomObserver({
        click: function(evt, comp) {
            comp.collapse();
        }
    })],
    store: myStore,
    typeAhead: true,
    mode: 'local',
    triggerAction: 'all'
});

Available since: 1.1.0

Ext.grid.GridView
view source
: Boolean
True to show the dirty cell indicator when a cell has been modified. ...

True to show the dirty cell indicator when a cell has been modified. Defaults to true.

Defaults to: true

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: String
The selector used to find row bodies internally (defaults to 'div.x-grid3-row') ...

The selector used to find row bodies internally (defaults to 'div.x-grid3-row')

Defaults to: 'div.x-grid3-row-body'

Available since: Ext JS 3.4.0

The number of levels to search for row bodies in event delegation (defaults to 10) ...

The number of levels to search for row bodies in event delegation (defaults to 10)

Defaults to: 10

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: String
The CSS class added to each row when it is hovered over. ...

The CSS class added to each row when it is hovered over. Defaults to 'x-grid3-row-over'

Defaults to: 'x-grid3-row-over'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: String
The selector used to find rows internally (defaults to 'div.x-grid3-row') ...

The selector used to find rows internally (defaults to 'div.x-grid3-row')

Defaults to: 'div.x-grid3-row'

Available since: 2.3.0

The number of levels to search for rows in event delegation (defaults to 10) ...

The number of levels to search for rows in event delegation (defaults to 10)

Defaults to: 10

Available since: 2.3.0

Ext.grid.GridView
view source
: Number
The amount of space to reserve for the vertical scrollbar (defaults to undefined). ...

The amount of space to reserve for the vertical scrollbar (defaults to undefined). If an explicit value isn't specified, this will be automatically calculated.

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: String
The CSS class applied to a selected row (defaults to 'x-grid3-row-selected'). ...

The CSS class applied to a selected row (defaults to 'x-grid3-row-selected'). An example overriding the default styling:

    .x-grid3-row-selected {background-color: yellow;}
    

Note that this only controls the row, and will not do anything for the text inside it. To style inner facets (like text) use something like:

    .x-grid3-row-selected .x-grid3-cell-inner {
        color: #FFCC00;
    }
    

Defaults to: 'x-grid3-row-selected'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: String
The text displayed in the 'Sort Ascending' menu item (defaults to 'Sort Ascending') ...

The text displayed in the 'Sort Ascending' menu item (defaults to 'Sort Ascending')

Defaults to: 'Sort Ascending'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Array
The CSS classes applied to a header when it is sorted. ...

The CSS classes applied to a header when it is sorted. (defaults to ['sort-asc', 'sort-desc'])

Defaults to: ['sort-asc', 'sort-desc']

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: String
The text displayed in the 'Sort Descending' menu item (defaults to 'Sort Descending') ...

The text displayed in the 'Sort Descending' menu item (defaults to 'Sort Descending')

Defaults to: 'Sort Descending'

Available since: Ext JS 3.4.0

Defined By

Properties

Ext.grid.GridView
view source
: masterTpl
The master template to use when rendering the GridView. ...

The master template to use when rendering the GridView. Has a default template

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Ext.Template
The template to use when rendering the body. ...

The template to use when rendering the body. Has a default template

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Numberprivate
private ...

private

Defaults to: 2

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Ext.Template
The template to use to render each cell. ...

The template to use to render each cell. Has a default template

Available since: Ext JS 3.4.0

A customized implementation of a DragZone which provides default implementations of the template methods of DragZone ...

A customized implementation of a DragZone which provides default implementations of the template methods of DragZone to enable dragging of the selected rows of a GridPanel. See Ext.grid.GridDragZone for details.

This will only be present:

  • if the owning GridPanel was configured with enableDragDrop: true.
  • after the owning GridPanel has been rendered.

Available since: 2.3.0

Ext.grid.GridView
view source
: Stringprivate
private ...

private

Defaults to: 'x-grid3-row-first'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Stringprivate
...

Defaults to: 'x-grid3-hd'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Ext.Template
The template to use when rendering headers. ...

The template to use when rendering headers. Has a default template

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Stringprivate
...

Defaults to: 'x-grid3-row-last'

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Ext.Element
Read-only. ...

Read-only. The GridView's body Element which encapsulates all rows in the Grid. This Element is only available after the GridPanel has been rendered.

Available since: 2.3.0

Ext.grid.GridView
view source
: RegExpprivate
...

Defaults to: /(?:^|\s+)x-grid3-row-(first|last|alt)(?:\s+|$)/g

Available since: Ext JS 3.4.0

Ext.grid.GridView
view source
: Stringprivate
...

Defaults to: 'x-grid3-cell'

Available since: Ext JS 3.4.0

Defined By

Methods

Ext.grid.GridView
view source
new( config ) : Ext.grid.GridView
...

Available since: 1.1.0

Parameters

  • config : Object

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.

Available since: 1.1.0

Parameters

  • o : Object|String

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

  • Optional : string

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

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

Appends an event handler to this object.

Available since: 1.1.0

Parameters

  • eventName : String

    The name of the event to listen for.

  • handler : Function

    The method the event invokes.

  • scope : Object (optional)

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

  • options : Object (optional)

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

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

    Combining Options
    Using the options argument, it is possible to combine different types of listeners:

    A delayed, one-time listener.

    myDataView.on('click', this.onClick, this, {
    single: true,
    delay: 100
    });

    Attaching multiple handlers in 1 call
    The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers.

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

    Or a shorthand syntax:

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

Fires

    Ext.grid.GridView
    view source
    ( rowId, cls )private
    private - use getRowClass to apply custom row classes ...

    private - use getRowClass to apply custom row classes

    Available since: Ext JS 3.4.0

    Parameters

    • rowId : Object
    • cls : Object

    Fires

      Ext.grid.GridView
      view source
      ( colIndex )private
      ...

      Available since: Ext JS 3.4.0

      Parameters

      • colIndex : Object
      Ext.grid.GridView
      view source
      ( )private
      ...

      Available since: Ext JS 3.4.0

      Fires

        Ext.grid.GridView
        view source
        ( )private
        This is always intended to be called after renderUI. ...

        This is always intended to be called after renderUI. Sets up listeners on the UI elements and sets up options like column menus, moving and resizing.

        Available since: Ext JS 3.4.0

        Fires

          Ext.grid.GridView
          view source
          ( )private
          Displays the configured emptyText if there are currently no rows to display ...

          Displays the configured emptyText if there are currently no rows to display

          Available since: Ext JS 3.4.0

          Fires

            Ext.grid.GridView
            view source
            ( preventUpdate )private
            Resizes the configured autoExpandColumn to take the available width after the other columns have been accounted for ...

            Resizes the configured autoExpandColumn to take the available width after the other columns have been accounted for

            Available since: Ext JS 3.4.0

            Parameters

            • preventUpdate : Boolean

              True to prevent the resizing of all rows (defaults to false)

            Fires

              Ext.grid.GridView
              view source
              ( )private
              Click handler for the shared column dropdown menu, called on beforeshow. ...

              Click handler for the shared column dropdown menu, called on beforeshow. Builds the menu which displays the list of columns for the user to show or hide.

              Available since: Ext JS 3.4.0

              Ext.grid.GridView
              view source
              ( )private
              private ...

              private

              Available since: Ext JS 3.4.0

              Ext.grid.GridView
              view source
              ( d, c )private
              DEPRECATED - will be removed in Ext JS 5.0 ...

              DEPRECATED - will be removed in Ext JS 5.0

              Available since: Ext JS 3.4.0

              Parameters

              • d : Object
              • c : Object

              Fires

                Ext.grid.GridView
                view source
                ( )private
                Removes any sorting indicator classes from the column headers ...

                Removes any sorting indicator classes from the column headers

                Available since: Ext JS 3.4.0

                Ext.grid.GridView
                view source
                ( dm, firstRow, lastRow )private
                DEPRECATED - this doesn't appear to be called anywhere in the library, remove in 4.0. ...

                DEPRECATED - this doesn't appear to be called anywhere in the library, remove in 4.0.

                Available since: Ext JS 3.4.0

                Parameters

                • dm : Object
                • firstRow : Object
                • lastRow : Object

                Fires

                Ext.grid.GridView
                view source
                ( )private
                Destroys all objects associated with the GridView ...

                Destroys all objects associated with the GridView

                Available since: Ext JS 3.4.0

                Fires

                  Ext.grid.GridView
                  view source
                  ( columns, records, store, startRow, colCount, stripe ) : Stringprivate
                  Renders all of the rows to a string buffer and returns the string. ...

                  Renders all of the rows to a string buffer and returns the string. This is called internally by renderRows and performs the actual string building for the rows - it does not inject HTML into the DOM.

                  Available since: Ext JS 3.4.0

                  Parameters

                  • columns : Array

                    The column data acquired from getColumnData.

                  • records : Array

                    The array of records to render

                  • store : Ext.data.Store

                    The store to render the rows from

                  • startRow : Number

                    The index of the first row being rendered. Sometimes we only render a subset of the rows so this is used to maintain logic for striping etc

                  • colCount : Number

                    The total number of columns in the column model

                  • stripe : Boolean

                    True to stripe the rows

                  Returns

                  • String

                    A string containing the HTML for the rendered rows

                  Fires

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

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

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

                    Example:

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

                    Available since: Ext JS 3.4.0

                    Parameters

                    • events : String/Array

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

                    Ext.grid.GridView
                    view source
                    ( row, col, hscroll )private
                    ...

                    Available since: 1.1.0

                    Parameters

                    • row : Object
                    • col : Object
                    • hscroll : Object

                    Fires

                      Ext.grid.GridView
                      view source
                      ( el )private
                      private ...

                      private

                      Available since: Ext JS 3.4.0

                      Parameters

                      • el : Object

                      Fires

                        Ext.grid.GridView
                        view source
                        ( el ) : Number
                        Return the index of the grid column which contains the passed HTMLElement. ...

                        Return the index of the grid column which contains the passed HTMLElement.

                        See also findRowIndex

                        Available since: Ext JS 3.4.0

                        Parameters

                        • el : HTMLElement

                          The target element

                        Returns

                        • Number

                          The column index, or false if the target element is not within a row of this GridView.

                        Fires

                          Ext.grid.GridView
                          view source
                          ( el )private
                          private ...

                          private

                          Available since: Ext JS 3.4.0

                          Parameters

                          • el : Object

                          Fires

                            Ext.grid.GridView
                            view source
                            ( el )private
                            private ...

                            private

                            Available since: Ext JS 3.4.0

                            Parameters

                            • el : Object

                            Fires

                              Ext.grid.GridView
                              view source
                              ( el ) : HTMLElement
                              Return the HtmlElement representing the grid row which contains the passed element. ...

                              Return the HtmlElement representing the grid row which contains the passed element.

                              Available since: 2.3.0

                              Parameters

                              • el : HTMLElement

                                The target HTMLElement

                              Returns

                              • HTMLElement

                                The row element, or null if the target element is not within a row of this GridView.

                              Fires

                                Ext.grid.GridView
                                view source
                                ( el ) : HTMLElement
                                Return the HtmlElement representing the grid row body which contains the passed element. ...

                                Return the HtmlElement representing the grid row body which contains the passed element.

                                Available since: Ext JS 3.4.0

                                Parameters

                                • el : HTMLElement

                                  The target HTMLElement

                                Returns

                                • HTMLElement

                                  The row body element, or null if the target element is not within a row body of this GridView.

                                Fires

                                  Ext.grid.GridView
                                  view source
                                  ( el ) : Number
                                  Return the index of the grid row which contains the passed HTMLElement. ...

                                  Return the index of the grid row which contains the passed HTMLElement. See also findCellIndex

                                  Available since: 2.3.0

                                  Parameters

                                  • el : HTMLElement

                                    The target HTMLElement

                                  Returns

                                  • Number

                                    The row index, or false if the target element is not within a row of this GridView.

                                  Fires

                                    ( 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).

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

                                    Available since: 1.1.0

                                    Parameters

                                    • eventName : String

                                      The name of the event to fire.

                                    • args : Object...

                                      Variable number of parameters are passed to handlers.

                                    Returns

                                    • Boolean

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

                                    Fires

                                      Ext.grid.GridView
                                      view source
                                      ( preventRefresh, onlyExpand, omitColumn ) : Booleanprivate
                                      Resizes each column to fit the available grid width. ...

                                      Resizes each column to fit the available grid width. TODO: The second argument isn't even used, remove it in 4.0

                                      Available since: 1.1.0

                                      Parameters

                                      • preventRefresh : Boolean

                                        True to prevent resizing of each row to the new column sizes (defaults to false)

                                      • onlyExpand : null

                                        NOT USED, will be removed in 4.0

                                      • omitColumn : Number

                                        The index of a column to leave at its current width. Defaults to undefined

                                      Returns

                                      • Boolean

                                        True if the operation succeeded, false if not or undefined if the grid view is not yet initialized

                                      Fires

                                        Ext.grid.GridView
                                        view source
                                        ( el )private
                                        Each GridView has its own private flyweight, accessed through this method ...

                                        Each GridView has its own private flyweight, accessed through this method

                                        Available since: Ext JS 3.4.0

                                        Parameters

                                        • el : Object
                                        Ext.grid.GridView
                                        view source
                                        ( row, col )
                                        Focuses the specified cell. ...

                                        Focuses the specified cell.

                                        Available since: 1.1.0

                                        Parameters

                                        Fires

                                          Ext.grid.GridView
                                          view source
                                          ( row )
                                          Focuses the specified row. ...

                                          Focuses the specified row.

                                          Available since: 1.1.0

                                          Parameters

                                          Fires

                                            Ext.grid.GridView
                                            view source
                                            ( row, col ) : HtmlElement
                                            Returns the grid's <td> HtmlElement at the specified coordinates. ...

                                            Returns the grid's <td> HtmlElement at the specified coordinates.

                                            Available since: 1.1.0

                                            Parameters

                                            • row : Number

                                              The row index in which to find the cell.

                                            • col : Number

                                              The column index of the cell.

                                            Returns

                                            • HtmlElement

                                              The td at the specified coordinates.

                                            Fires

                                              Ext.grid.GridView
                                              view source
                                              ( el )private
                                              private ...

                                              private

                                              Available since: Ext JS 3.4.0

                                              Parameters

                                              • el : Object
                                              Ext.grid.GridView
                                              view source
                                              ( ) : Arrayprivate
                                              Returns an array of column configurations - one for each column ...

                                              Returns an array of column configurations - one for each column

                                              Available since: Ext JS 3.4.0

                                              Returns

                                              • Array

                                                Array of column config objects. This includes the column name, renderer, id style and renderer

                                              Fires

                                                Ext.grid.GridView
                                                view source
                                                ( index )private
                                                private ...

                                                private

                                                Available since: Ext JS 3.4.0

                                                Parameters

                                                • index : Object
                                                Ext.grid.GridView
                                                view source
                                                ( colIndex, isHeader ) : Stringprivate
                                                Builds a CSS string for the given column index ...

                                                Builds a CSS string for the given column index

                                                Available since: Ext JS 3.4.0

                                                Parameters

                                                • colIndex : Number

                                                  The column index

                                                • isHeader : Boolean

                                                  True if getting the style for the column's header

                                                Returns

                                                Fires

                                                  Ext.grid.GridView
                                                  view source
                                                  ( i )private
                                                  ...

                                                  Available since: Ext JS 3.4.0

                                                  Parameters

                                                  • i : Object
                                                  Ext.grid.GridView
                                                  view source
                                                  ( column ) : Numberprivate
                                                  Returns the width of a given column minus its border width ...

                                                  Returns the width of a given column minus its border width

                                                  Available since: Ext JS 3.4.0

                                                  Parameters

                                                  • column : Object

                                                  Returns

                                                  Ext.grid.GridView
                                                  view source
                                                  ( )private
                                                  private ...

                                                  private

                                                  Available since: Ext JS 3.4.0

                                                  Ext.grid.GridView
                                                  view source
                                                  ( ) : Number
                                                  Returns the total internal width available to the grid, taking the scrollbar into account ...

                                                  Returns the total internal width available to the grid, taking the scrollbar into account

                                                  Available since: Ext JS 3.4.0

                                                  Returns

                                                  Fires

                                                    Ext.grid.GridView
                                                    view source
                                                    ( index ) : HtmlElement
                                                    Return the <td> HtmlElement which represents the Grid's header cell for the specified column index. ...

                                                    Return the <td> HtmlElement which represents the Grid's header cell for the specified column index.

                                                    Available since: 1.1.0

                                                    Parameters

                                                    • index : Number

                                                      The column index

                                                    Returns

                                                    • HtmlElement

                                                      The td element.

                                                    Ext.grid.GridView
                                                    view source
                                                    ( )private
                                                    private ...

                                                    private

                                                    Available since: Ext JS 3.4.0

                                                    Fires

                                                      Ext.grid.GridView
                                                      view source
                                                      ( index ) : Number/undefinedprivate
                                                      Returns the index of the nearest currently visible header to the left of the given index. ...

                                                      Returns the index of the nearest currently visible header to the left of the given index.

                                                      Available since: Ext JS 3.4.0

                                                      Parameters

                                                      • index : Number

                                                        The header index

                                                      Returns

                                                      • Number/undefined

                                                        The index of the nearest visible header

                                                      Ext.grid.GridView
                                                      view source
                                                      ( resolved ) : Arrayprivate
                                                      Returns the XY co-ordinates of a given row/cell resolution (see resolveCell) ...

                                                      Returns the XY co-ordinates of a given row/cell resolution (see resolveCell)

                                                      Available since: Ext JS 3.4.0

                                                      Parameters

                                                      • resolved : Object

                                                      Returns

                                                      Ext.grid.GridView
                                                      view source
                                                      ( index ) : HtmlElement
                                                      Return the <div> HtmlElement which represents a Grid row for the specified index. ...

                                                      Return the <div> HtmlElement which represents a Grid row for the specified index.

                                                      Available since: 1.1.0

                                                      Parameters

                                                      Returns

                                                      • HtmlElement

                                                        The div element.

                                                      Fires

                                                        Ext.grid.GridView
                                                        view source
                                                        ( record, index, rowParams, store ) : String
                                                        Override this function to apply custom CSS classes to rows during rendering. ...

                                                        Override this function to apply custom CSS classes to rows during rendering. You can also supply custom parameters to the row template for the current row to customize how it is rendered using the rowParams parameter. This function should return the CSS class name (or empty string '' for none) that will be added to the row's wrapping div. To apply multiple class names, simply return them space-delimited within the string (e.g., 'my-class another-class'). Example usage:

                                                        viewConfig: {
                                                            forceFit: true,
                                                            showPreview: true, // custom property
                                                            enableRowBody: true, // required to create a second, full-width row to show expanded Record data
                                                            getRowClass: function(record, rowIndex, rp, ds){ // rp = rowParams
                                                                if(this.showPreview){
                                                                    rp.body = '<p>'+record.data.excerpt+'</p>';
                                                                    return 'x-grid3-row-expanded';
                                                                }
                                                                return 'x-grid3-row-collapsed';
                                                            }
                                                        },
                                                            

                                                        Available since: 1.1.0

                                                        Parameters

                                                        • record : Record

                                                          The Ext.data.Record corresponding to the current row.

                                                        • index : Number

                                                          The row index.

                                                        • rowParams : Object

                                                          A config object that is passed to the row template during rendering that allows customization of various aspects of a grid row.

                                                          If enableRowBody is configured true, then the following properties may be set by this function, and will be used to render a full-width expansion row below each grid row:

                                                          • body : String
                                                            An HTML fragment to be used as the expansion row's body content (defaults to '').
                                                          • bodyStyle : String
                                                            A CSS style specification that will be applied to the expansion row's <tr> element. (defaults to '').

                                                          The following property will be passed in, and may be appended to:

                                                          • tstyle : String
                                                            A CSS style specification that willl be applied to the <table> element which encapsulates both the standard grid row, and any expansion row.
                                                        • store : Store

                                                          The Ext.data.Store this grid is bound to

                                                        Returns

                                                        • String

                                                          a CSS class name to add to the row.

                                                        Ext.grid.GridView
                                                        view source
                                                        ( )private
                                                        private ...

                                                        private

                                                        Available since: Ext JS 3.4.0

                                                        Fires

                                                          Ext.grid.GridView
                                                          view source
                                                          ( )private
                                                          private ...

                                                          private

                                                          Available since: Ext JS 3.4.0

                                                          Ext.grid.GridView
                                                          view source
                                                          ( )private
                                                          private ...

                                                          private

                                                          Available since: Ext JS 3.4.0

                                                          Ext.grid.GridView
                                                          view source
                                                          ( ) : Stringprivate
                                                          Returns the total width of all visible columns ...

                                                          Returns the total width of all visible columns

                                                          Available since: Ext JS 3.4.0

                                                          Returns

                                                          Ext.grid.GridView
                                                          view source
                                                          ( e, target )private
                                                          Called when a header cell is clicked - shows the menu if the click happened over a trigger button ...

                                                          Called when a header cell is clicked - shows the menu if the click happened over a trigger button

                                                          Available since: Ext JS 3.4.0

                                                          Parameters

                                                          • e : Object
                                                          • target : Object

                                                          Fires

                                                            Ext.grid.GridView
                                                            view source
                                                            ( item )private
                                                            Attached as the 'itemclick' handler to the header menu and the column show/hide submenu (if available). ...

                                                            Attached as the 'itemclick' handler to the header menu and the column show/hide submenu (if available). Performs sorting if the sorter buttons were clicked, otherwise hides/shows the column that was clicked.

                                                            Available since: Ext JS 3.4.0

                                                            Parameters

                                                            • item : Object

                                                            Fires

                                                              Ext.grid.GridView
                                                              view source
                                                              ( item )
                                                              Called by handleHdMenuClick if any button except a sort ASC/DESC button was clicked. ...

                                                              Called by handleHdMenuClick if any button except a sort ASC/DESC button was clicked. The default implementation provides the column hide/show functionality based on the check state of the menu item. A different implementation can be provided if needed.

                                                              Available since: Ext JS 3.4.0

                                                              Parameters

                                                              Fires

                                                                Ext.grid.GridView
                                                                view source
                                                                ( e )private
                                                                Attached to the headers' mousemove event. ...

                                                                Attached to the headers' mousemove event. This figures out the CSS cursor to use based on where the mouse is currently pointed. If the mouse is currently hovered over the extreme left or extreme right of any header cell and the cell next to it is resizable it is given the resize cursor, otherwise the cursor is set to an empty string.

                                                                Available since: Ext JS 3.4.0

                                                                Parameters

                                                                • e : Object

                                                                Fires

                                                                  Ext.grid.GridView
                                                                  view source
                                                                  ( e, target )private
                                                                  Tied to the header element's mouseout event. ...

                                                                  Tied to the header element's mouseout event. Removes the hover class from the header cell

                                                                  Available since: Ext JS 3.4.0

                                                                  Parameters

                                                                  • e : Object
                                                                  • target : Object

                                                                  Fires

                                                                    Ext.grid.GridView
                                                                    view source
                                                                    ( e, target )private
                                                                    Tied to the header element's mouseover event - adds the over class to the header cell if the menu is not disabled for...

                                                                    Tied to the header element's mouseover event - adds the over class to the header cell if the menu is not disabled for that cell

                                                                    Available since: Ext JS 3.4.0

                                                                    Parameters

                                                                    • e : Object
                                                                    • target : Object

                                                                    Fires

                                                                      Ext.grid.GridView
                                                                      view source
                                                                      ( e )private
                                                                      private ...

                                                                      private

                                                                      Available since: Ext JS 3.4.0

                                                                      Parameters

                                                                      • e : Object
                                                                      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

                                                                      Available since: 1.1.0

                                                                      Parameters

                                                                      • eventName : String

                                                                        The name of the event to check for

                                                                      Returns

                                                                      • Boolean

                                                                        True if the event is being listened for, else false

                                                                      Ext.grid.GridView
                                                                      view source
                                                                      ( ) : Booleanprivate
                                                                      Returns true if there are any rows rendered into the GridView ...

                                                                      Returns true if there are any rows rendered into the GridView

                                                                      Available since: Ext JS 3.4.0

                                                                      Returns

                                                                      • Boolean

                                                                        True if any rows have been rendered

                                                                      Ext.grid.GridView
                                                                      view source
                                                                      ( grid )private
                                                                      private ...

                                                                      private

                                                                      Available since: Ext JS 3.4.0

                                                                      Parameters

                                                                      • grid : Object

                                                                      Fires

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( newStore, newColModel )private
                                                                        Binds a new Store and ColumnModel to this GridView. ...

                                                                        Binds a new Store and ColumnModel to this GridView. Removes any listeners from the old objects (if present) and adds listeners to the new ones

                                                                        Available since: Ext JS 3.4.0

                                                                        Parameters

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( )private
                                                                        Finds and stores references to important elements ...

                                                                        Finds and stores references to important elements

                                                                        Available since: Ext JS 3.4.0

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( )private
                                                                        private ...

                                                                        private

                                                                        Available since: Ext JS 3.4.0

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( )private
                                                                        Provides default templates if they are not given for this particular instance. ...

                                                                        Provides default templates if they are not given for this particular instance. Most of the templates are defined on the prototype, the ones defined inside this function are done so because they are based on Grid or GridView configuration

                                                                        Available since: Ext JS 3.4.0

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( grid )private
                                                                        private ...

                                                                        private

                                                                        Available since: Ext JS 3.4.0

                                                                        Parameters

                                                                        • grid : Object
                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( dm, firstRow, lastRow, isUpdate )private
                                                                        private ...

                                                                        private

                                                                        Available since: Ext JS 3.4.0

                                                                        Parameters

                                                                        • dm : Object
                                                                        • firstRow : Object
                                                                        • lastRow : Object
                                                                        • isUpdate : Object

                                                                        Fires

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( c )private
                                                                        ...

                                                                        Available since: Ext JS 3.4.0

                                                                        Parameters

                                                                        • c : Object
                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( cellIndex, el )private
                                                                        Used by handleHdOver to determine whether or not to show the header menu class on cell hover ...

                                                                        Used by handleHdOver to determine whether or not to show the header menu class on cell hover

                                                                        Available since: Ext JS 3.4.0

                                                                        Parameters

                                                                        • cellIndex : Number

                                                                          The header cell index

                                                                        • el : Ext.Element

                                                                          The cell element currently being hovered over

                                                                        Ext.grid.GridView
                                                                        view source
                                                                        ( initial )private
                                                                        Sizes the grid's header and body elements ...

                                                                        Sizes the grid's header and body elements

                                                                        Available since: Ext JS 3.4.0

                                                                        Parameters

                                                                        • initial : Object

                                                                        Fires

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

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

                                                                          Available since: 1.1.0

                                                                          Parameters

                                                                          • eventName : String

                                                                            The type of event to listen for

                                                                          • handler : Function

                                                                            The method the event invokes

                                                                          • scope : Object (optional)

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

                                                                          • options : Object (optional)

                                                                            An object containing handler configuration.

                                                                          Ext.grid.GridView
                                                                          view source
                                                                          ( store, records, index )private
                                                                          private ...

                                                                          private

                                                                          Available since: Ext JS 3.4.0

                                                                          Parameters

                                                                          • store : Object
                                                                          • records : Object
                                                                          • index : Object

                                                                          Fires

                                                                          Ext.grid.GridView
                                                                          view source
                                                                          ( ws, tw )private
                                                                          ...

                                                                          Available since: Ext JS 3.4.0

                                                                          Parameters

                                                                          • ws : Object
                                                                          • tw : Object
                                                                          Ext.grid.GridView
                                                                          view source
                                                                          ( row, col )private
                                                                          private ...

                                                                          private

                                                                          Available since: Ext JS 3.4.0

                                                                          Parameters

                                                                          • row : Object
                                                                          • col : Object

                                                                          Fires

                                                                            Ext.grid.GridView
                                                                            view source
                                                                            ( row, col )private
                                                                            private ...

                                                                            private

                                                                            Available since: Ext JS 3.4.0

                                                                            Parameters

                                                                            • row : Object
                                                                            • col : Object

                                                                            Fires

                                                                              Ext.grid.GridView
                                                                              view source
                                                                              ( )private
                                                                              private ...

                                                                              private

                                                                              Available since: Ext JS 3.4.0

                                                                              Fires

                                                                              Ext.grid.GridView
                                                                              view source
                                                                              ( )private
                                                                              private ...

                                                                              private

                                                                              Available since: Ext JS 3.4.0

                                                                              Fires

                                                                              Ext.grid.GridView
                                                                              view source
                                                                              ( cm, col, width )private
                                                                              private ...

                                                                              private

                                                                              Available since: Ext JS 3.4.0

                                                                              Parameters

                                                                              • cm : Object
                                                                              • col : Object
                                                                              • width : Object

                                                                              Fires

                                                                                Ext.grid.GridView
                                                                                view source
                                                                                ( col, hidden, tw )private
                                                                                ...

                                                                                Available since: Ext JS 3.4.0

                                                                                Parameters

                                                                                • col : Object
                                                                                • hidden : Object
                                                                                • tw : Object
                                                                                Ext.grid.GridView
                                                                                view source
                                                                                ( cm, oldIndex, newIndex )private
                                                                                private ...

                                                                                private

                                                                                Available since: Ext JS 3.4.0

                                                                                Parameters

                                                                                • cm : Object
                                                                                • oldIndex : Object
                                                                                • newIndex : Object

                                                                                Fires

                                                                                Ext.grid.GridView
                                                                                view source
                                                                                ( cellIndex, width )private
                                                                                Called by the SplitDragZone when a drag has been completed. ...

                                                                                Called by the SplitDragZone when a drag has been completed. Resizes the columns

                                                                                Available since: Ext JS 3.4.0

                                                                                Parameters

                                                                                • cellIndex : Object
                                                                                • width : Object

                                                                                Fires

                                                                                  Ext.grid.GridView
                                                                                  view source
                                                                                  ( col, w, tw )private
                                                                                  ...

                                                                                  Available since: Ext JS 3.4.0

                                                                                  Parameters

                                                                                  • col : Object
                                                                                  • w : Object
                                                                                  • tw : Object
                                                                                  Ext.grid.GridView
                                                                                  view source
                                                                                  ( )private
                                                                                  private ...

                                                                                  private

                                                                                  Available since: Ext JS 3.4.0

                                                                                  Fires

                                                                                  Ext.grid.GridView
                                                                                  view source
                                                                                  ( )private
                                                                                  private ...

                                                                                  private

                                                                                  Available since: Ext JS 3.4.0

                                                                                  Ext.grid.GridView
                                                                                  view source
                                                                                  ( cm, col, text )private
                                                                                  private ...

                                                                                  private

                                                                                  Available since: Ext JS 3.4.0

                                                                                  Parameters

                                                                                  • cm : Object
                                                                                  • col : Object
                                                                                  • text : Object

                                                                                  Fires

                                                                                    Ext.grid.GridView
                                                                                    view source
                                                                                    ( g, index )private
                                                                                    private ...

                                                                                    private

                                                                                    Available since: Ext JS 3.4.0

                                                                                    Parameters

                                                                                    • g : Object
                                                                                    • index : Object
                                                                                    Ext.grid.GridView
                                                                                    view source
                                                                                    ( cm, col, hidden )private
                                                                                    private ...

                                                                                    private

                                                                                    Available since: Ext JS 3.4.0

                                                                                    Parameters

                                                                                    • cm : Object
                                                                                    • col : Object
                                                                                    • hidden : Object

                                                                                    Fires

                                                                                      Ext.grid.GridView
                                                                                      view source
                                                                                      ( vw, vh )private
                                                                                      template functions for subclasses and plugins these functions include precalculated values ...

                                                                                      template functions for subclasses and plugins these functions include precalculated values

                                                                                      Available since: Ext JS 3.4.0

                                                                                      Parameters

                                                                                      • vw : Object
                                                                                      • vh : Object
                                                                                      Ext.grid.GridView
                                                                                      view source
                                                                                      ( )private
                                                                                      Called when a store is loaded, scrolls to the top row ...

                                                                                      Called when a store is loaded, scrolls to the top row

                                                                                      Available since: Ext JS 3.4.0

                                                                                      Fires

                                                                                        Ext.grid.GridView
                                                                                        view source
                                                                                        ( store, record, index, isUpdate )private
                                                                                        private ...

                                                                                        private

                                                                                        Available since: Ext JS 3.4.0

                                                                                        Parameters

                                                                                        • store : Object
                                                                                        • record : Object
                                                                                        • index : Object
                                                                                        • isUpdate : Object

                                                                                        Fires

                                                                                        Ext.grid.GridView
                                                                                        view source
                                                                                        ( row )private
                                                                                        private ...

                                                                                        private

                                                                                        Available since: Ext JS 3.4.0

                                                                                        Parameters

                                                                                        • row : Object

                                                                                        Fires

                                                                                          Ext.grid.GridView
                                                                                          view source
                                                                                          ( e, target )private
                                                                                          Removes the hover class from a row on mouseout ...

                                                                                          Removes the hover class from a row on mouseout

                                                                                          Available since: Ext JS 3.4.0

                                                                                          Parameters

                                                                                          • e : Object
                                                                                          • target : Object

                                                                                          Fires

                                                                                            Ext.grid.GridView
                                                                                            view source
                                                                                            ( e, target )private
                                                                                            Adds the hover class to a row when hovered over ...

                                                                                            Adds the hover class to a row when hovered over

                                                                                            Available since: Ext JS 3.4.0

                                                                                            Parameters

                                                                                            • e : Object
                                                                                            • target : Object

                                                                                            Fires

                                                                                              Ext.grid.GridView
                                                                                              view source
                                                                                              ( row )private
                                                                                              private ...

                                                                                              private

                                                                                              Available since: Ext JS 3.4.0

                                                                                              Parameters

                                                                                              • row : Object

                                                                                              Fires

                                                                                                Ext.grid.GridView
                                                                                                view source
                                                                                                ( store, record )private
                                                                                                private ...

                                                                                                private

                                                                                                Available since: Ext JS 3.4.0

                                                                                                Parameters

                                                                                                • store : Object
                                                                                                • record : Object

                                                                                                Fires

                                                                                                Ext.grid.GridView
                                                                                                view source
                                                                                                ( name, e )private
                                                                                                private ...

                                                                                                private

                                                                                                Available since: Ext JS 3.4.0

                                                                                                Parameters

                                                                                                • name : Object
                                                                                                • e : Object

                                                                                                Fires

                                                                                                  Ext.grid.GridView
                                                                                                  view source
                                                                                                  ( startRow )private
                                                                                                  Adds CSS classes and rowIndex to each row ...

                                                                                                  Adds CSS classes and rowIndex to each row

                                                                                                  Available since: Ext JS 3.4.0

                                                                                                  Parameters

                                                                                                  • startRow : Number

                                                                                                    The row to start from (defaults to 0)

                                                                                                  Fires

                                                                                                    Removes all listeners for this object ...

                                                                                                    Removes all listeners for this object

                                                                                                    Available since: 1.1.0

                                                                                                    Ext.grid.GridView
                                                                                                    view source
                                                                                                    ( [headersToo] )
                                                                                                    Refreshs the grid UI ...

                                                                                                    Refreshs the grid UI

                                                                                                    Available since: 1.1.0

                                                                                                    Parameters

                                                                                                    • headersToo : Boolean (optional)

                                                                                                      True to also refresh the headers

                                                                                                    Fires

                                                                                                    Ext.grid.GridView
                                                                                                    view source
                                                                                                    ( record )private
                                                                                                    Refreshes a row by re-rendering it. ...

                                                                                                    Refreshes a row by re-rendering it. Fires the rowupdated event when done

                                                                                                    Available since: Ext JS 3.4.0

                                                                                                    Parameters

                                                                                                    • record : Object

                                                                                                    Fires

                                                                                                    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.

                                                                                                    Available since: 2.3.0

                                                                                                    Parameters

                                                                                                    • o : Object

                                                                                                      The Observable whose events this object is to relay.

                                                                                                    • events : Array

                                                                                                      Array of event names to relay.

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

                                                                                                    Removes an event handler.

                                                                                                    Available since: 1.1.0

                                                                                                    Parameters

                                                                                                    • eventName : String

                                                                                                      The type of event the handler was associated with.

                                                                                                    • handler : Function

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

                                                                                                    • scope : Object (optional)

                                                                                                      The scope originally specified for the handler.

                                                                                                    Ext.grid.GridView
                                                                                                    view source
                                                                                                    ( row )private
                                                                                                    private ...

                                                                                                    private

                                                                                                    Available since: Ext JS 3.4.0

                                                                                                    Parameters

                                                                                                    • row : Object

                                                                                                    Fires

                                                                                                      Ext.grid.GridView
                                                                                                      view source
                                                                                                      ( row, cls )private
                                                                                                      private ...

                                                                                                      private

                                                                                                      Available since: Ext JS 3.4.0

                                                                                                      Parameters

                                                                                                      • row : Object
                                                                                                      • cls : Object

                                                                                                      Fires

                                                                                                        Ext.grid.GridView
                                                                                                        view source
                                                                                                        ( firstRow, lastRow )private
                                                                                                        private ...

                                                                                                        private

                                                                                                        Available since: Ext JS 3.4.0

                                                                                                        Parameters

                                                                                                        • firstRow : Object
                                                                                                        • lastRow : Object

                                                                                                        Fires

                                                                                                          Ext.grid.GridView
                                                                                                          view source
                                                                                                          ( )private
                                                                                                          private ...

                                                                                                          private

                                                                                                          Available since: Ext JS 3.4.0

                                                                                                          Fires

                                                                                                            Ext.grid.GridView
                                                                                                            view source
                                                                                                            ( )private
                                                                                                            private ...

                                                                                                            private

                                                                                                            Available since: Ext JS 3.4.0

                                                                                                            Fires

                                                                                                              Ext.grid.GridView
                                                                                                              view source
                                                                                                              ( ) : Stringprivate
                                                                                                              Renders the header row using the 'header' template. ...

                                                                                                              Renders the header row using the 'header' template. Does not inject the HTML into the DOM, just returns a string.

                                                                                                              Available since: Ext JS 3.4.0

                                                                                                              Returns

                                                                                                              Fires

                                                                                                                Ext.grid.GridView
                                                                                                                view source
                                                                                                                ( startRow, endRow )private
                                                                                                                Renders rows between start and end indexes ...

                                                                                                                Renders rows between start and end indexes

                                                                                                                Available since: Ext JS 3.4.0

                                                                                                                Parameters

                                                                                                                • startRow : Number

                                                                                                                  Index of the first row to render

                                                                                                                • endRow : Number

                                                                                                                  Index of the last row to render

                                                                                                                Fires

                                                                                                                  Ext.grid.GridView
                                                                                                                  view source
                                                                                                                  ( )private
                                                                                                                  Renders each of the UI elements in turn. ...

                                                                                                                  Renders each of the UI elements in turn. This is called internally, once, by this.render. It does not render rows from the store, just the surrounding UI elements.

                                                                                                                  Available since: Ext JS 3.4.0

                                                                                                                  Fires

                                                                                                                    Ext.grid.GridView
                                                                                                                    view source
                                                                                                                    ( row, col, hscroll )private
                                                                                                                    Finds the Elements corresponding to the given row and column indexes ...

                                                                                                                    Finds the Elements corresponding to the given row and column indexes

                                                                                                                    Available since: Ext JS 3.4.0

                                                                                                                    Parameters

                                                                                                                    • row : Object
                                                                                                                    • col : Object
                                                                                                                    • hscroll : Object

                                                                                                                    Fires

                                                                                                                      Ext.grid.GridView
                                                                                                                      view source
                                                                                                                      ( state )private
                                                                                                                      private ...

                                                                                                                      private

                                                                                                                      Available since: Ext JS 3.4.0

                                                                                                                      Parameters

                                                                                                                      • state : Object
                                                                                                                      Resume firing events. ...

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

                                                                                                                      Available since: 2.3.0

                                                                                                                      Ext.grid.GridView
                                                                                                                      view source
                                                                                                                      ( )
                                                                                                                      Scrolls the grid to the top ...

                                                                                                                      Scrolls the grid to the top

                                                                                                                      Available since: 1.1.0

                                                                                                                      Suspend the firing of all events. ...

                                                                                                                      Suspend the firing of all events. (see resumeEvents)

                                                                                                                      Available since: 2.3.0

                                                                                                                      Parameters

                                                                                                                      • queueSuspended : Boolean

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

                                                                                                                      Ext.grid.GridView
                                                                                                                      view source
                                                                                                                      ( row, col, hscroll )private
                                                                                                                      Moves the focus element to the x and y co-ordinates of the given row and column ...

                                                                                                                      Moves the focus element to the x and y co-ordinates of the given row and column

                                                                                                                      Available since: Ext JS 3.4.0

                                                                                                                      Parameters

                                                                                                                      • row : Object
                                                                                                                      • col : Object
                                                                                                                      • hscroll : Object

                                                                                                                      Fires

                                                                                                                        Ext.grid.GridView
                                                                                                                        view source
                                                                                                                        ( )private
                                                                                                                        private ...

                                                                                                                        private

                                                                                                                        Available since: Ext JS 3.4.0

                                                                                                                        Ext.grid.GridView
                                                                                                                        view source
                                                                                                                        ( )private
                                                                                                                        private ...

                                                                                                                        private

                                                                                                                        Available since: Ext JS 3.4.0

                                                                                                                        Fires

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

                                                                                                                          Removes an event handler (shorthand for removeListener.)

                                                                                                                          Available since: 1.1.0

                                                                                                                          Parameters

                                                                                                                          • eventName : String

                                                                                                                            The type of event the handler was associated with.

                                                                                                                          • handler : Function

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

                                                                                                                          • scope : Object (optional)

                                                                                                                            The scope originally specified for the handler.

                                                                                                                          Ext.grid.GridView
                                                                                                                          view source
                                                                                                                          ( )private
                                                                                                                          Updates the size of every column and cell in the grid ...

                                                                                                                          Updates the size of every column and cell in the grid

                                                                                                                          Available since: Ext JS 3.4.0

                                                                                                                          Fires

                                                                                                                            Ext.grid.GridView
                                                                                                                            view source
                                                                                                                            ( col, hidden )private
                                                                                                                            Sets the hidden status of a given column. ...

                                                                                                                            Sets the hidden status of a given column.

                                                                                                                            Available since: Ext JS 3.4.0

                                                                                                                            Parameters

                                                                                                                            • col : Number

                                                                                                                              The column index

                                                                                                                            • hidden : Boolean

                                                                                                                              True to make the column hidden

                                                                                                                            Fires

                                                                                                                              Ext.grid.GridView
                                                                                                                              view source
                                                                                                                              ( col, text )private
                                                                                                                              ...

                                                                                                                              Available since: Ext JS 3.4.0

                                                                                                                              Parameters

                                                                                                                              • col : Object
                                                                                                                              • text : Object
                                                                                                                              Ext.grid.GridView
                                                                                                                              view source
                                                                                                                              ( column )private
                                                                                                                              Called after a column's width has been updated, this resizes all of the cells for that column in each row ...

                                                                                                                              Called after a column's width has been updated, this resizes all of the cells for that column in each row

                                                                                                                              Available since: Ext JS 3.4.0

                                                                                                                              Parameters

                                                                                                                              • column : Number

                                                                                                                                The column index

                                                                                                                              Fires

                                                                                                                                Ext.grid.GridView
                                                                                                                                view source
                                                                                                                                ( )private
                                                                                                                                Adds sorting classes to the column headers based on the bound store's sortInfo. ...

                                                                                                                                Adds sorting classes to the column headers based on the bound store's sortInfo. Fires the 'sortchange' event if the sorting has changed since this function was last run.

                                                                                                                                Available since: Ext JS 3.4.0

                                                                                                                                Fires

                                                                                                                                  Ext.grid.GridView
                                                                                                                                  view source
                                                                                                                                  ( updateMain )private
                                                                                                                                  Ensures that the header is sized to the total width available to it ...

                                                                                                                                  Ensures that the header is sized to the total width available to it

                                                                                                                                  Available since: Ext JS 3.4.0

                                                                                                                                  Parameters

                                                                                                                                  • updateMain : Boolean

                                                                                                                                    True to update the mainBody's width also (defaults to true)

                                                                                                                                  Fires

                                                                                                                                    Ext.grid.GridView
                                                                                                                                    view source
                                                                                                                                    ( )private
                                                                                                                                    Re-renders the headers and ensures they are sized correctly ...

                                                                                                                                    Re-renders the headers and ensures they are sized correctly

                                                                                                                                    Available since: Ext JS 3.4.0

                                                                                                                                    Fires

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( col, dir )private
                                                                                                                                      Ensures the given column has the given icon class ...

                                                                                                                                      Ensures the given column has the given icon class

                                                                                                                                      Available since: Ext JS 3.4.0

                                                                                                                                      Parameters

                                                                                                                                      • col : Object
                                                                                                                                      • dir : Object
                                                                                                                                      Defined By

                                                                                                                                      Events

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired before the view is refreshed.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view, rowIndex, record )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired before a row is removed.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view, firstRow, lastRow )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired before rows are inserted.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired after the GridView's body has been refreshed.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view, rowIndex, record )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired after a row is removed.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view, firstRow, lastRow )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired after rows are inserted.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      Ext.grid.GridView
                                                                                                                                      view source
                                                                                                                                      ( view, firstRow, record )
                                                                                                                                      Internal UI Event. ...

                                                                                                                                      Internal UI Event. Fired after a row has been updated.

                                                                                                                                      Available since: 2.3.0

                                                                                                                                      Parameters

                                                                                                                                      • view : Ext.grid.GridView
                                                                                                                                      • firstRow : Number

                                                                                                                                        The index of the row updated.

                                                                                                                                      • record : Ext.data.record

                                                                                                                                        The Record backing the row updated.