I have a grid that just shows a collection of a specific table.

below is a file upload component that I want to use for CSV upload, that will replace all old collection. Image reference is below:

enter image description here

When the file is uploaded, ajax completes, I need to reload the grid page so that new data is loaded and

$this->messageManager->addSuccess(__('Batch upload Success');

is displayed.

Please tell how can I do that.

1 Answer 1


Try with below way.

Add below code in your ajax success function.

success: function (data) {

If you still not getting the solution then try with below way.

I hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.