1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    6
    Vote Rating
    0
    fortunado is on a distinguished road

      0  

    Default events of grid.ColumnModel in ext4

    events of grid.ColumnModel in ext4


    How to handle these events in Ext4 ?

    PHP Code:
    // Ext3 code
    var cm grid.getColumnModel();
    cm.on("widthchange"this.onColumnWidthChangethis);
    cm.on("columnmoved"this.OnColumnMovedthis);
    cm.on("headerchange"this.onHeaderChangethis);
    cm.on("hiddenchange"this.onColumnHiddenChangethis); 
    Thanks

  2. #2
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,656
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    Ext.grid.header.Container (xtype headercontainer)

    PHP Code:
    me.addEvents(
                
    /**
                 * @event columnresize
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 * @param {Number} width
                 */
                
    'columnresize',

                
    /**
                 * @event headerclick
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 * @param {Ext.EventObject} e
                 * @param {HTMLElement} t
                 */
                
    'headerclick',

                
    /**
                 * @event headertriggerclick
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 * @param {Ext.EventObject} e
                 * @param {HTMLElement} t
                 */
                
    'headertriggerclick',

                
    /**
                 * @event columnmove
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 * @param {Number} fromIdx
                 * @param {Number} toIdx
                 */
                
    'columnmove',
                
    /**
                 * @event columnhide
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 */
                
    'columnhide',
                
    /**
                 * @event columnshow
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 */
                
    'columnshow',
                
    /**
                 * @event sortchange
                 * @param {Ext.grid.header.Container} ct The grid's header Container which encapsulates all column headers.
                 * @param {Ext.grid.column.Column} column The Column header Component which provides the column definition
                 * @param {String} direction
                 */
                
    'sortchange',
                
    /**
                 * @event menucreate
                 * Fired immediately after the column header menu is created.
                 * @param {Ext.grid.header.Container} ct This instance
                 * @param {Ext.menu.Menu} menu The Menu that was created
                 */
                
    'menucreate'
            
    ); 
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Similar Threads

  1. Ext4 Grid Performance?
    By NateWorcester in forum Community Discussion
    Replies: 35
    Last Post: 12 Jun 2011, 12:54 AM
  2. Ext4, when?
    By westy in forum Community Discussion
    Replies: 31
    Last Post: 15 Dec 2010, 6:49 AM
  3. Ext.grid.ColumnModel bug in IE
    By mrmalaa in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 Oct 2009, 6:57 AM
  4. ColumnModel Grid
    By nathanblogs in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 25 Jun 2009, 2:45 AM
  5. BUG?: Ext.grid.ColumnModel
    By christocracy in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 15 Mar 2007, 3:23 PM

Thread Participants: 1

Tags for this Thread