lambypie
lambypie

Reputation: 481

Adding listener to Ext.grid.ColumnModel

i was trying to add a listener(columnshow) to Ext.grid.ColumnModel inside a Ext.grid.GridPanel, but my listener function is not being called.

pls help.

parts of code pasted below.

    var gridCm = new Ext.grid.ColumnModel({
       columns  : data.result.columns,
       listeners    : {
            columnshow  : function( a , b ) {
                alert(1);   
            }   
       }
    });

Upvotes: 0

Views: 2777

Answers (1)

Lionel Chan
Lionel Chan

Reputation: 8069

Because it's not supported? There is no columnshow in Ext 3.4

http://docs.sencha.com/ext-js/3-4/#!/api/Ext.grid.ColumnModel

columnshow is available in ExtJS 4.0+.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.column.Column-event-columnshow

Upvotes: 1

Related Questions