I have a modal dialog and I want to refresh the parent form when I close the dialog.
I have used this javascript code:
self.close();
window.dialogArguments.location.reload(true);
The problem is that it doesnt always refreshes the parent form. Sometimes it refreshes and sometimes it doesnt and I can't figure out why it doesn't refreshes always?