Is there a way to refresh a grid from a popup window that was opened by that grid? I currently have it reloading the entire window, but would like to just refresh the grid.
Code in grid to open popup window:
window.open(url.concat(“?contractId=”).concat(contractId).concat(“&contractHistoryId=”).concat(contractHistoryId),”Window1″,”menubar=no,width=700,height=500,toolbar=no”);
Code in popup when closed:
<script type=”text/javascript”>
window.onunload = refreshParent;
alert(“Assets renewed”);
self.close();
function refreshParent() {
window.opener.location.reload();
}
</script>
1 Answers
Your Answer