<code><pre>
hot_database_table.updateSettings({
cells: function (row, col, prop) {
var cellProperties = {};
if(col === 2) {
try{
console.log(hot_database_table.getData()[row][prop]);
if (hot_".$settings['database']."_".$settings['table'].".getData()[row][prop]===undefined) {cellProperties.readOnly = false;}
else {cellProperties.readOnly = true;}
}
catch(err) {console.log(err);}
return cellProperties;
}
}
});
</pre></code>
I keep getting this error: Cannot read property 'agency_num' of undefined.
(Agency_num is the column name).
Any suggestions on what I should do?
'cellProperties.editor = true;'
should work.