Clear Up
SharpKit Reference

TableEvents Class

Namespace: Ext.panel

Constructors

Name Description
TableEvents(Object[])

Methods

Name Description
beforecontainerclick(View, EventObject, object) Fires before the click event on the container is processed. Returns false to cancel the default action.
beforecontainercontextmenu(View, EventObject, object) Fires before the contextmenu event on the container is processed. Returns false to cancel the default action.
beforecontainerdblclick(View, EventObject, object) Fires before the dblclick event on the container is processed. Returns false to cancel the default action.
beforecontainermousedown(View, EventObject, object) Fires before the mousedown event on the container is processed. Returns false to cancel the default action.
beforecontainermouseout(View, EventObject, object) Fires before the mouseout event on the container is processed. Returns false to cancel the default action.
beforecontainermouseover(View, EventObject, object) Fires before the mouseover event on the container is processed. Returns false to cancel the default action.
beforecontainermouseup(View, EventObject, object) Fires before the mouseup event on the container is processed. Returns false to cancel the default action.
beforedeselect(RowModel, Model, JsNumber, object) Fired before a record is deselected. If any listener returns false, the deselection is cancelled.
beforeedit(Editing, object, object) Forwarded event from Ext.grid.plugin.Editing. Fires before editing is triggered. Return false from event handler to stop the editing.
beforeitemclick(View, Model, object, JsNumber, EventObject, object) Fires before the click event on an item is processed. Returns false to cancel the default action.
beforeitemcontextmenu(View, Model, object, JsNumber, EventObject, object) Fires before the contextmenu event on an item is processed. Returns false to cancel the default action.
beforeitemdblclick(View, Model, object, JsNumber, EventObject, object) Fires before the dblclick event on an item is processed. Returns false to cancel the default action.
beforeitemmousedown(View, Model, object, JsNumber, EventObject, object) Fires before the mousedown event on an item is processed. Returns false to cancel the default action.
beforeitemmouseenter(View, Model, object, JsNumber, EventObject, object) Fires before the mouseenter event on an item is processed. Returns false to cancel the default action.
beforeitemmouseleave(View, Model, object, JsNumber, EventObject, object) Fires before the mouseleave event on an item is processed. Returns false to cancel the default action.
beforeitemmouseup(View, Model, object, JsNumber, EventObject, object) Fires before the mouseup event on an item is processed. Returns false to cancel the default action.
beforeselect(RowModel, Model, JsNumber, object) Fired before a record is selected. If any listener returns false, the selection is cancelled.
canceledit(Editing, object, object) Forwarded event from Ext.grid.plugin.Editing. Fires when the user started editing but then cancelled the edit.
cellclick(Table, object, JsNumber, Model, object, JsNumber, EventObject, object) Fired when table cell is clicked.
celldblclick(Table, object, JsNumber, Model, object, JsNumber, EventObject, object) Fired when table cell is double clicked.
columnhide(Container, Column, object) Parameters
  • ct : Ext.grid.header.Container

    The grid's header Container which encapsulates all column headers.

  • column : Ext.grid.column.Column

    The Column header Component which provides the column definition

  • eOpts : Object

    The options object passed to Ext.util.Observable.addListener.

  • columnmove(Container, Column, JsNumber, JsNumber, object) Parameters
  • ct : Ext.grid.header.Container

    The grid's header Container which encapsulates all column headers.

  • column : Ext.grid.column.Column

    The Column header Component which provides the column definition

  • fromIdx : Number
  • toIdx : Number
  • eOpts : Object

    The options object passed to Ext.util.Observable.addListener.

  • columnresize(Container, Column, JsNumber, object) Parameters
  • ct : Ext.grid.header.Container

    The grid's header Container which encapsulates all column headers.

  • column : Ext.grid.column.Column

    The Column header Component which provides the column definition

  • width : Number
  • eOpts : Object

    The options object passed to Ext.util.Observable.addListener.

  • columnshow(Container, Column, object) Parameters
  • ct : Ext.grid.header.Container

    The grid's header Container which encapsulates all column headers.

  • column : Ext.grid.column.Column

    The Column header Component which provides the column definition

  • eOpts : Object

    The options object passed to Ext.util.Observable.addListener.

  • containerclick(View, EventObject, object) Fires when the container is clicked.
    containercontextmenu(View, EventObject, object) Fires when the container is right clicked.
    containerdblclick(View, EventObject, object) Fires when the container is double clicked.
    containermouseout(View, EventObject, object) Fires when you move the mouse out of the container.
    containermouseover(View, EventObject, object) Fires when you move the mouse over the container.
    containermouseup(View, EventObject, object) Fires when there is a mouse up on the container
    deselect(RowModel, Model, JsNumber, object) Fired after a record is deselected
    edit(Editing, object, object) Forwarded event from Ext.grid.plugin.Editing. Fires after a editing. Usage example:
    grid.on('edit', function(editor, e) {
                // commit the changes right after editing finished
                e.record.commit();
                });
                
    itemclick(View, Model, object, JsNumber, EventObject, object) Fires when an item is clicked.
    itemcontextmenu(View, Model, object, JsNumber, EventObject, object) Fires when an item is right clicked.
    itemdblclick(View, Model, object, JsNumber, EventObject, object) Fires when an item is double clicked.
    itemmousedown(View, Model, object, JsNumber, EventObject, object) Fires when there is a mouse down on an item
    itemmouseenter(View, Model, object, JsNumber, EventObject, object) Fires when the mouse enters an item.
    itemmouseleave(View, Model, object, JsNumber, EventObject, object) Fires when the mouse leaves an item.
    itemmouseup(View, Model, object, JsNumber, EventObject, object) Fires when there is a mouse up on an item
    select(RowModel, Model, JsNumber, object) Fired after a record is selected
    selectionchange(Model, JsArray<T>, object) Fired after a selection change has occurred
    sortchange(Container, Column, JsString, object) Parameters
  • ct : Ext.grid.header.Container

    The grid's header Container which encapsulates all column headers.

  • column : Ext.grid.column.Column

    The Column header Component which provides the column definition

  • direction : String
  • eOpts : Object

    The options object passed to Ext.util.Observable.addListener.

  • validateedit(Editing, object, object) Forwarded event from Ext.grid.plugin.Editing. Fires after editing, but before the value is set in the record. Return false from event handler to cancel the change. Usage example showing how to remove the red triangle (dirty record indicator) from some records (not all). By observing the grid's validateedit event, it can be cancelled if the edit occurs on a targeted row (for example) and then setting the field's new value in the Record directly:
    grid.on('validateedit', function(editor, e) {
                var myTargetRow = 6;
                if (e.rowIdx == myTargetRow) {
                e.cancel = true;
                e.record.data[e.field] = e.value;
                }
                });
                
    viewready(Table, object) Fires when the grid view is available (use this for selecting a default row).
    © Copyright 2005-2011 SharpKit. All rights reserved.