Master Detail Refresh

Is there a way to refresh the entire master form after clicking an actionbar ajax button in a grid thats in the details.

similar issue, i want master to refresh when detail comes back after user enters data in its form