在ext js中有没有任何列点击事件? [英] is there any column click event in 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屋!