ฉันกำลังพยายามซ่อนฟิลด์จากแหล่งข้อมูลตารางเคนโด้ตามเงื่อนไขบางประการ แอตทริบิวต์ที่ลองใช้แล้ว ซ่อนอยู่ เปิดใช้งาน --- ไม่ทำงาน รหัสมีลักษณะดังนี้
return new kendo.data.DataSource({
schema: {
model: {
fields: {
Id: { type: 'number', nullable: false, editable: false, defaultValue:null},
Frist Name: {type: 'string', nullable: false, editable: false, defaultValue: 'fTest'},
Last Name: {type:'string', nullable: false, editable: true, defaultValue: 'LTest'},
BirthDate: {type:'date', nullable: false, editable: true},
Type: {type:'string', nullable: false, editable: true},
Field1: {type:'string', hidden:true, defaultValue: ''},
ฉันกำลังพยายามซ่อน Field1 หากตรงตามเงื่อนไขบางประการ ความช่วยเหลือใด ๆ ที่จะได้รับการชื่นชมอย่างมาก.