refresh grid from popup

Questionsrefresh grid from popup
Ed K asked 2 years ago

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
Adrian answered 2 years ago

Hi,

You could try $(“#list1”, parent.document) .trigger( ‘reloadGrid’ );

where list1 is name of your grid

Best regards

Your Answer

7 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?