Check documentation for the latest version of dhtmlxSuite setReadonly DHTMLX Docs

setReadonly

makes an item readonly

void setReadonly(string name,boolean state);
namestringthe name of an item
statebooleantrue/false, by default - false

Example

//makes an item with name="myInput" readonly
myForm.setReadonly("myInput", true);
 
//makes the item not readonly
myForm.setReadonly("myInput", false);

Back to top