配置监听事件 : itemclick : this.onItemclick
onItemclick : function(grid, record, item, index, e, opts) {
// gridPanel里面每一次远素点击都会把点击的这一行的index赋值到lastClickIndex上,在grid要求多选,而需要获得精确选择行的时候使用
grid.up('gridpanel').lastClickIndex = index;
},
配置监听事件 : itemclick : this.onItemclick
onItemclick : function(grid, record, item, index, e, opts) {
// gridPanel里面每一次远素点击都会把点击的这一行的index赋值到lastClickIndex上,在grid要求多选,而需要获得精确选择行的时候使用
grid.up('gridpanel').lastClickIndex = index;
},