Hello, I using this code:
hot = new Handsontable(container, {
startRows: 8,
startCols: 6,
rowHeaders: true,
//colHeaders: true,
colHeaders(index) {
return Colonne[index];
},
search: true,
filters: true,
hiddenRows: { indicators: true }
});
const hiddenRowPlugin = hot.getPlugin('hiddenRows');
const searchPlugin = hot.getPlugin('search');
const hiddenColumnsPlugin = hot.getPlugin('hiddenColumns');
// GET method gets data from the Controller
Handsontable.Dom.addEvent(load, 'click', function () {
jQuery.ajax({
url: '@Url.Action("DataLoad")', //Controller to Get the JsonResult From -- Json(jsonData, JsonRequestBehavior.AllowGet);
type: "GET",
dataType: "json",
contentType: 'application/json; charset=utf-8', // dataType and contentType should be json
async: true,
processData: false,
cache: false,
success: function (data) { // on Success send the Json data to the table by using loaddata function""
hot.loadData(data);
exampleConsole.innerHTML = 'Data loaded';
hiddenColumnsPlugin.hideColumn(0);
hot.render();
},
error: function (xhr) {
alert('error');
}
});
but column 0 is shown.
Could you help me? What I wrong?