如何在网格视图中显示 NULL 值?
2015-02-20
421
如何在网格视图中显示 NULL 值?我正在使用 Kendo 网格视图,如果我没有连接到某些外键(例如:_UnitKey)的 NULL 值,它会很好地工作。谢谢大家
这是我从本地服务器获取的 odata 文件的一部分:
"_Key":11000002100000003,"SAPStorageLocation":"Kopenhagen","_UnitKey":81200000001,""_MaterialKey":83000000004,"UnitOfMeasure":"hl","Status":0,"StartTime":"2015-02-03T11:56:05.39+01:00","Quantity":17.926000000,"ProductionResourceOrLine":"ProductionResourceOrLine","OrderType":"OrderType 20","MaterialLotID":"MaterialLotID 20","ID":"ID 20","CreationTime":"2015-02-03T11:56:05.39+01:00","Comment":"123456789012345678901234567890123456789
我想显示例如 _UnitKey 是否不是数字,如果它为空..但它不显示,我收到一条消息:“无法读取空的属性‘_UnitKey’”
1个回答
您可以在模型中添加,例如:public DateTime?DisposalDate { get; set; }
Tam Nguyen
2015-03-10