开发者

is there any column click event in ext js?

开发者 https://www.devze.com 2022-12-25 03:24 出处:网络
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 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

精彩评论

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

关注公众号