Skip to content

Rebind Gridview on Fancybox close #389

Answered by fancyapps
mrwrighty asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry, but I don't understand what exactly makes you to struggle.

How to determine when Fancybox is closing -

Fancybox.bind("[data-fancybox]", {
  on: {
    closing: () => {
      	// your code
    },
  },
});

How to refresh parent page -

window.parent.location.reload();

Combine that:

Fancybox.bind("[data-fancybox]", {
  on: {
    closing: () => {
      	window.parent.location.reload();
    },
  },
});

So, please, ask a more specific question or show your page/demo.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mrwrighty
Comment options

You must be logged in to vote
1 reply
@fancyapps
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants