Jqwidget checkbox in grid cell is allways checked even if its value coming from Json is false inside asp .net mvc3 project.(At database side, I used bit and at server side I used bool type in model definition)
The source part at client is:
var source = {
datatype: "json",
datafields: [{ name: 'KargoId' }, { name: 'Ad' }, { name: 'Soyad' }, { name: 'Urun' }, { name: 'Uygunluk' },
{ name: 'YuklenmeTarihi', type: 'date' }, { name: 'Adet' }, { name: 'Fiyat'}],
url: 'BindEditGrid'
};
And column definition for checkbox column is:
{ text: 'Uygun', datafield: 'Uygunluk', columntype: 'checkbox', width: 67 }
在数据字段定义中,布尔列的类型应设置为“布尔”。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.