grid refresh when closing fancy box

Questionsgrid refresh when closing fancy box
Abed asked 6 years ago

Hello,

I have a popup fancy box in my grid, Which contains a form that I do updates on my table. When I close the fancy box I would like to refresh grid to see updated values. Is there any solution for that?

2 Answers
Abu Ghufran answered 6 years ago

You can use following JS code: (where list1 is grid id)

$(".fancybox").fancybox(
{ onClose:function(){

$("#list1").trigger("reloadGrid", [{current:true}]);

}
});

Abed answered 6 years ago

Thank you for the reply.

It didn't work at first. I changed onClose to afterClose. Now the code is working. Thank you.

Your Answer

2 + 14 =

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?