listeners

listeners: {  
'cellclick':function(grid,rowIndex,columnIndex,e )
{
var count = grid.getStore().getCount(); //获取当前总条数
var sel_model = grid.getSelectionModel();//获取当前选择行
//var record = sel_model.getSelection();//获取行数据
for (var i = 0; i < count ; i++)
{  
          if (sel_model.isSelected(i))
          {  
            //store.remove(store.getAt(i)); //删除选中行记录
            var instance = grid.getStore().getAt(i);//获取行数据
            var jobId = instance.get("jobInstanceId");//取得对应数据
alert(jobId);
          }  
        }
}   
}

你可能感兴趣的:(Panel)