junebubble 2017-02-27 04:19 采纳率: 0%
浏览 951
已采纳

Ext grid用行号添加事件

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.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?