Skip to content

How to set the "select" col_edittype be readonly?

In FORM edit, you need to add the following code to disable dropdown manually. Remember to replace COLUMN_NAME with your own.

$dg -> add_event('jqGridAddEditBeforeShowForm', 'function(){$("#reportsTo").attr("disabled", true);}');

Alternatively, you can switch to INLINE edit, the select will be read only.

Feedback and Knowledge Base