在ext js中有没有任何列点击事件? [英] is there any column click event in ext js?

查看:184
本文介绍了在ext js中有没有任何列点击事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ext.grid.gridpanel.As在rowclick事件中,我们可以处理行的点击grid.Is有任何事件处理列点击grid?

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.

推荐答案

没有特殊的 columnclick 事件在gridpanel或选择模型,但你可以听到

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 )

你用。查看 columnIndex ,您将知道点击了哪一列。如果您想对标题行的点击做​​出反应,请改用 headerclick 事件。

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.

这篇关于在ext js中有没有任何列点击事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆