Optimized grid reloads and detail view reload in ajax.