views:

421

answers:

1

Does anyone know how through either javascript or jquery know how to disable a select (dropdown) control within a Jqgrid edit dialog form? Thanks.

+1  A: 

Use dataInit event and do $(element).attr("disable", "disable") there. To make this happen everytime the form is shown, either set option to re-create form each time it is shown (by default it is created once), or try to set disabled in the afterShowForm event.

queen3
Thanks to Minsk! :) You saved my time :)
Fedyashev Nikita