Ext的grid中已经知道了行号 怎么对这一行增加双击事件
或者给这一行增加id
1条回答 默认 最新
- 斯洛文尼亚旅游 2017-02-27 05:40关注
换个思路不久行了,添加itemdblclick事件,判断是你需要的行再执行相关代码
itemdblclick( this, record, item, index, e, eOpts ) Fires when an item is double clicked. Available since: 4.0.0 Parameters this : Ext.view.View record : Ext.data.Model The record that belongs to the item item : HTMLElement The item's element index : Number The item's index e : Ext.EventObject The raw event object eOpts : Object The options object passed to Ext.util.Observable.addListener.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报