Disabling a JQGrid dropdown in an edit dialog form

…衆ロ難τιáo~ 提交于 2019-12-11 09:13:01

问题


Does anyone know how through either javascript or jQuery know how to disable a select (dropdown) control within a jqGrid edit dialog form?


回答1:


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.



来源:https://stackoverflow.com/questions/1910781/disabling-a-jqgrid-dropdown-in-an-edit-dialog-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!