Skip to content

Instantly share code, notes, and snippets.

@RobinHerbots
Created May 14, 2013 11:24
Show Gist options
  • Save RobinHerbots/5575254 to your computer and use it in GitHub Desktop.
Save RobinHerbots/5575254 to your computer and use it in GitHub Desktop.
Multiple download file
this.downloadUpload = function (rowid) {
var rowids = rowid ? [rowid] : res.Control.uploadOverview.jqGrid('getGridParam', 'selarrrow');
$.each(rowids, function (ndx, rwd) {
var downloadFrame = $("<iframe></iframe>");
downloadFrame.attr("src", '@Url.Action("DownloadFile", "Upload")?uploadId=' + rwd);
downloadFrame.on("onload", function() {
$(this).remove();
});
$("body").append(downloadFrame);
});
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment