how to disable a jqgrid select list (dropdown) on the edit form

Posted by MikeD on Stack Overflow See other posts from Stack Overflow or by MikeD
Published on 2009-10-09T18:50:10Z Indexed on 2010/04/06 9:03 UTC
Read the original article Hit count: 967

Filed under:
|
|
|

This is strange and any alternative method to what I want to accomplish is welcome. My app uses the jqgrid 3.5.3 and I need to disable a select list on my edit form. When I do so using the code displayed below it breaks the edit form - meaning I can not cancel or submit it. Thanks. This code is in the edit options array of the navGrid method. The the dropdown is the 'serv_descr' field. The others are text boxes and don't pose a problem. The form does come up and the field is disabled - its just broken.

beforeShowForm: function(eparams) {

         document.getElementById('equip_id').disabled = true;
         document.getElementById('service_dt').disabled = true;
         document.getElementById('serv_descr').disabled = true;
         document.getElementById('calc_next_svc').checked = 'true';
     }

© Stack Overflow or respective owner

Related posts about jqgrid

Related posts about select