Completely disable a handsontable
To fully "disable" a Handsontable I have done the following:
hot.updateSettings({
readOnly: true, // make table cells read-only
contextMenu: false, // disable context menu to change things
disableVisualSelection: true, // prevent user from visually selecting
manualColumnResize: false, // prevent dragging to resize columns
manualRowResize: false, // prevent dragging to resize rows
comments: false // prevent editing of comments
});
You can do this using the updateSettings
var hot = $("#exampleGrid").handsontable('getInstance');
hot.updateSettings({
readOnly: true
});
Check the following link: http://jsfiddle.net/Hn3Zv/