vishvesha
vishvesha

Reputation: 121

is there any column click event in ext js?

I am using Ext.grid.gridpanel.As in rowclick event, we can handle row click of grid..Is there any event to handle column click of grid?

i want to select a particular column of grid.

Upvotes: 3

Views: 9499

Answers (1)

Stefan Gehrig
Stefan Gehrig

Reputation: 83622

There is no special columnclick event on the gridpanel or the selection model, but you can listen to the

cellclick : ( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )

event on the gridpanel itself - irrespective which selection model you use. Looking at the columnIndex you'll know which column has been clicked. If you want to react on clicks onto the header row, use the headerclick event instead.

Upvotes: 6

Related Questions