如何在网格视图中显示 NULL 值?
How to display NULL values in grid view?
如何在网格视图中显示空值?我正在使用 Kendo 网格视图,如果我没有连接到某些外键的 NULL 值(例如:_UnitKey),它会很好用。谢谢大家
这是我从本地服务器获取的 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 不是数字,如果它是空的..但它不显示,我收到一条消息:"Cannot read property '_UnitKey' of null"
您可以在模型中添加,例如:public DateTime?处置日期{ 得到;放; }
如何在网格视图中显示空值?我正在使用 Kendo 网格视图,如果我没有连接到某些外键的 NULL 值(例如:_UnitKey),它会很好用。谢谢大家
这是我从本地服务器获取的 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 不是数字,如果它是空的..但它不显示,我收到一条消息:"Cannot read property '_UnitKey' of null"
您可以在模型中添加,例如:public DateTime?处置日期{ 得到;放; }