| Package: | Ext.grid | 
| Class: | GridView | 
| Extends: | Observable | 
| Defined In: | GridView.js | 
| Method | Defined By | |
|---|---|---|
GridView( Object config ) | 
        GridView | |
addEvents( Object object ) : void | 
        Observable | |
| Used to define events on this Observable | ||
addListener( String eventName, Function handler, [Object scope], [Object options] ) : void | 
        Observable | |
| Appends an event handler to this component | ||
autoSizeColumn( Number colIndex, Boolean forceMinSize ) : void | 
        GridView | |
| Autofit a column to its content. | ||
| autoSizeColumns() : void | GridView | |
| Autofits all columns to their content and then expands to fit any extra space in the grid | ||
ensureVisible( Number row, Number col, Boolean hscroll ) : void | 
        GridView | |
| Scrolls the specified cell into view | ||
fireEvent( String eventName, Object... args ) : Boolean | 
        Observable | |
| Fires the specified event with the passed parameters (minus the event name). | ||
fitColumns( Boolean reserveScrollSpace ) : void | 
        GridView | |
| Autofits all columns to the grid's width proportionate with their current size | ||
focusCell( Number row, Number col, Boolean hscroll ) : void | 
        GridView | |
| Focuses the specified cell. | ||
focusRow( Number row ) : void | 
        GridView | |
| Focuses the specified row. | ||
getFooterPanel( Boolean doShow ) : Ext.Element | 
        GridView | |
| Gets a panel in the footer of the grid that can be used for toolbars etc. After modifying the contents of this panel ... | ||
getHeaderPanel( Boolean doShow ) : Ext.Element | 
        GridView | |
| Gets a panel in the header of the grid that can be used for toolbars etc. After modifying the contents of this panel ... | ||
getRowClass( Record record, Number index ) : void | 
        GridView | |
| Override this function to apply custom css classes to rows during rendering | ||
hasListener( String eventName ) : Boolean | 
        Observable | |
| Checks to see if this object has any listeners for a specified event | ||
on( String eventName, Function handler, [Object scope], [Object options] ) : void | 
        Observable | |
| Appends an event handler to this element (shorthand for addListener) | ||
| purgeListeners() : void | Observable | |
| Removes all listeners for this object | ||
refresh( Boolean headersToo ) : void | 
        GridView | |
| Refreshes the grid | ||
removeListener( String eventName, Function handler, [Object scope] ) : void | 
        Observable | |
| Removes a listener | ||
| scrollToTop() : void | GridView | |
| Scrolls the grid to the top | ||
un( String eventName, Function handler, [Object scope] ) : void | 
        Observable | |
| Removes a listener (shorthand for removeListener) | ||
public function GridView( Object config )
                config : Objectpublic function addEvents( Object object )
                object : Objectvoidpublic function addListener( String eventName, Function handler, [Object scope], [Object options] )
                eventName : Stringhandler : Functionscope : Objectoptions : Object
Combining Options
Using the options argument, it is possible to combine different types of listeners:
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
		
el.on('click', this.onClick, this, {
 			single: true,
    		delay: 100,
    		forumId: 4
		});
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.
el.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 which passes the same scope object to all handlers:
el.on({
			'click': this.onClick,
    		'mouseover': this.onMouseOver,
    		'mouseout': this.onMouseOut,
    		scope: this
		});voidpublic function autoSizeColumn( Number colIndex, Boolean forceMinSize )
                colIndex : NumberforceMinSize : Booleanvoidpublic function autoSizeColumns()
                voidpublic function ensureVisible( Number row, Number col, Boolean hscroll )
                row : Numbercol : Numberhscroll : Booleanvoidpublic function fireEvent( String eventName, Object... args )
                eventName : Stringargs : Object...Booleanpublic function fitColumns( Boolean reserveScrollSpace )
                reserveScrollSpace : Booleanvoidpublic function focusCell( Number row, Number col, Boolean hscroll )
                row : Numbercol : Numberhscroll : Booleanvoidpublic function focusRow( Number row )
                row : Numbervoidpublic function getFooterPanel( Boolean doShow )
                doShow : BooleanExt.Elementpublic function getHeaderPanel( Boolean doShow )
                doShow : BooleanExt.Elementpublic function getRowClass( Record record, Number index )
                record : Recordindex : Numbervoidpublic function hasListener( String eventName )
                eventName : StringBooleanpublic function on( String eventName, Function handler, [Object scope], [Object options] )
                eventName : Stringhandler : Functionscope : Objectoptions : Objectvoidpublic function purgeListeners()
                voidpublic function refresh( Boolean headersToo )
                headersToo : Booleanvoidpublic function removeListener( String eventName, Function handler, [Object scope] )
                eventName : Stringhandler : Functionscope : Objectvoidpublic function scrollToTop()
                voidpublic function un( String eventName, Function handler, [Object scope] )
                eventName : Stringhandler : Functionscope : Objectvoid