JQGer格复选框始终处于选中状态



我在jquery Web应用程序中设置复选框时遇到了一些问题。我的 json 如下所示。我希望死印是一个复选框(Y 或 N)...

    {
        "userid": "Mike",
        "regname": "xxx219123",
        "noteid": 1040,
        "actiondt": "2014-11-20T00:00:00",
        "fromdt": "2014-11-18T00:00:00",
        "note": "Faulty drawer",
        "reasoncde": "AC",
        "deadind": "N",
        "lastmodified": "2014-11-18T15:38:27"
    },

我的专栏在下面。请参阅死印专栏...

colModel:[
    {name:'regname', width: 12, align:'center', sortable:false},
    {name:'reasoncde', width: 10, align:'center', sortable:false, formatter:reasonCodeFormatter},
    {name:'userid', width: 12, align:'center', sortable:false}, 
    {name:'noteid', hidden:true},
    {name:'note', width: 40, align:'left', sortable:false},         
    {name:'fromdt', width: 12, align:'center', sortable:false, formatter:dateToTimestampStringFormatter},
    {name:'actiondt', width: 12, align:'center', sortable:false, formatter:dateToTimestampStringFormatter},
    {name:'deadind', width: 10, align:'center', sortable:false, editable: true,  edittype: 'checkbox', editoptions:{value:"Y:N", defaultValue: "N"}, formatter: "checkbox", formatoptions:{disabled: false}  },
    {name:'lastmodified', width: 17, align:'center', sortable:false, formatter:timestampStringFormatter}
],

出于某种原因,该复选框始终处于选中状态。根据我的理解,因为 N 被指定为编辑选项中的第二个值,我认为我的复选框应该取消选中。

感谢您的帮助。

谢谢

抱歉,但是演示如何显示"deadind": "N"值将显示为未选中的复选框。

最新更新