I want to reload my handsontable after a ajax call. Can you please help me out?
here is my code
let self = this;
axios.post(self.constants.api_url + ‘reset/progression_settings’,request, self.header)
.then(function (response) {
self.$refs.testHot.hotInstance.render();
})
},
Hi @agniva.ghosh
If you want to load new data from the server response, you just need the loadData
method (it renders the table automatically).
Ref: https://handsontable.com/docs/api/core/#loaddata
That is a core method, so you use it on your hotInstance
You just need to be sure that the data structure is an array of objects or arrays and it follows the structure you set in your settings.