Ext GridPanel 的单击双击事件

    技术2024-12-26  14

    yui-ext 双击Grid行,获取cell值

    1、需要定义rowdbclick

    2、获取相应cell的值

    var onRowDoubleClick = function(grid, rowIndex, e){     var selectionModel = grid.getSelectionModel();       var record = selectionModel.getSelected();   alert(record.data['proid']);    }        grid.addListener('rowdblclick', onRowDoubleClick);

    单击则只需将'rowdblclick'改成'rowclick'

     

    最新回复(0)