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 获取选中的行并遍历

posted @ 2016-04-21 16:49  java渣渣  阅读(492)  评论(0编辑  收藏  举报