获取 选中的列:

      
      var rowsData = $('#zPersonalInfoList').datagrid('getSelections');

功能里获取选中的列:

     
      var row = $("#zPersonalInfoList").datagrid("getRows")[index];

使用弹窗来实现页面内功能,注意index要设置的大一点,否则可能会显示在其他页面后面,导致弹窗无法被看到;



     $.dialog.setting.zIndex = 20001;
$.dialog({content: 'url:XxxController/fileBatchLoad.do', zIndex:20001, title: '标题', lock: true, width: '500px', height: '400px', opacity: 0.4, button: [
        {name: '确定', callback: callbackFileUpload, focus: true},
        {name: '取消', callback: function (){}}
    ]}).zindex();

获取当前单位: $(this) 即可.