Gridview sorting not working inside modal after it is closed and reopened.

Web Tips Q & ACategory: Krajee Yii2 ExtensionsGridview sorting not working inside modal after it is closed and reopened.
ered15 asked 4 weeks ago

Open a gridview inside a modal
2.Test the sorting
3.Close the modal
4.Reopen the modal and test again
 
When I follow those steps, I see…
If I have a Gridview inside a modal, the sorting works perfectly if is the first time the modal is opened. But if I close the modal and reopen it, without reloading the page, the sorting stops working. All the Ajax calls are made correctly and the responses are correct, but the grid is not updated. If I reload the page it starts to work normally again, until I close and reopen it. Attached is a screenshot showing the Ajax response, but the grid not updated.

Login or register to contribute or comment.

Login   Register