我正在使用 jqGrid 4.1.2,当我导航输入表单时,复选框没有更新。例如,如果我选中一个复选框并提交表单,则更改将记录在数据库中,但如果我重新加载表单,则不会显示复选框勾选。
{name:'entireTooth',width:50, editable:true, hidden:true, edittype:'checkbox',formatter: 'checkbox', editoptions:{value:'Yes:No'}, editrules:{edithidden:true}}
生成以下形式的复选框:
http://screencast.com/t/jFJeoJWL
Firebug 显示创建的 HTML像这样:
<input id="entireTooth" class="FormElement" type="checkbox" value="Yes" offval="No" name="entireTooth" role="checkbox">
jqGrid 正确记录对数据库的更改,只是在加载表单时无法将复选框更新为数据库值。
感谢您的任何建议和帮助!
I am using jqGrid 4.1.2 and checkboxes are not updating as I navigate the input form. For example if I check a checkbox and submit form the change is recorded in the database, but the checkbox tick is not displayed if I reload the form.
{name:'entireTooth',width:50, editable:true, hidden:true, edittype:'checkbox',formatter: 'checkbox', editoptions:{value:'Yes:No'}, editrules:{edithidden:true}}
Produces the checkbox in the form:
http://screencast.com/t/jFJeoJWL
Firebug shows the HTML created as this:
<input id="entireTooth" class="FormElement" type="checkbox" value="Yes" offval="No" name="entireTooth" role="checkbox">
jqGrid records changes to the database correctly, it just fails to update the checkbox to the database value when the form is loaded.
Thanks for any suggestions and help!
发布评论
评论(1)
我认为您遇到了描述的问题 此处。该问题已在 jqGrid 4.2.0 中修复。所以你应该只更新你使用的 jqGrid 。
I think that you have the problem described here and here. The problem is already fixed in jqGrid 4.2.0. So you should just update jqGrid which you use.