I have added a custom tab using xml layout updates to the order view in Magento. I have then added a custom grid to the new tab and enabled Ajax on the grid. I have set setUseAjax(true) and setSaveParametersInSession(true). I have overridden the gridUrl method to return the controller method that should be used. In the controller method, I call loadLayout and create the grid block in the response body.
What now happens is that when I try to sort or filter on the grid, the grid data is returned, but the Please wait... loading element from Ajax does not disappear once the data is returned. I have made other custom grids with the same setup and it has worked fine, but some reason or another, it is not working here.
Does anyone have any comments or suggestions as to what could be going wrong here?
I have viewed the following posts about this: