Fork me on GitHub


a minimalistic Excel-like data grid editor for HTML, JavaScript & jQuery

Read-only cells

This page shows ways to configure columns or cells to be read only:

Read-only columns

In many usage cases, you will need to configure a certain column to be read only. This column will be available for keyboard navigation and CTRL+C. Only editing and pasting data will be disabled.

To make a column read-only, declare it in the columns setting. You can also define a special renderer function that will dim the read-only values.

Read-only specific cells

This example makes cells that contain the word "Nissan" read only.

It forces all cells to be rendered by myReadonlyRenderer, which will decide wheather a cell is really read only by checking its readOnly property.

For more examples, head back to the main page.

Handsontable © 2012 Marcin Warpechowski and contributors.
Code and documentation licensed under the The MIT License.