开发者

is there any column click event in ext js?

I am using E开发者_如何学编程xt.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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜