DeeboData JS Grid Angular Grid React Grid
Contact Us Demo Pricing

DeeboData Javascript Datagrid Block Cell Editing

Javascript Data Grid

The 3 line code snippet below is from the initialization code. buildInitUiDataTable accepts 5 parameters. The 4th parameter is a boolean that when set to true will block all cell editing in the grid. If you don't pass a 4th arg or you pass a falsey value like false or null, cell editing will be allowed. By default, line 1 of the below snippet is the only code that executes, then lines 2 and 3 are commented out. Simply use the code in line 2 to block cell editing. Make sure you only have 1 of the below lines executing. Do not call buildInitUiDataTable more than once on the same grid instance.

deebo.methods.buildInitUiDataTable(data, "#000035", "#e9e9e9")//any 2 css colors
//deebo.methods.buildInitUiDataTable(data, null, null, true)//pass true in 4th arg to block editing
//deebo.methods.buildInitUiDataTable(data, "black", "skyblue", true, true)//pass true in 5th arg to hide row numbers