Ext4.0 获取选中行及遍历
var grid= Ext.getCmp('grid'); var records=grid.getSelectionModel().getSelection(); if(records!=null&&records!=undefined&&records.length>0){ Ext.Msg.alert('提示','请不要选中记录'); return; } Ext.Array.each(records,function(record){ orderIds+=record.get('orderId')+","; });
EXT 4.0 获取选中的行并遍历