[英]How to add conditional column for kendo ui grid using angular js?
我們如何向kendo ui網格添加條件列。
我有這樣的JSON輸入
[{
"ProductID": 1,
"ProductName": "Chai",
"Supplier": {
"SupplierID": 1,
"SupplierName": "Exotic Liquids"
},
"Category": {
"CategoryID": 1,
"CategoryName": "Beverages"
},
"UnitPrice": 18.0,
"UnitsInStock": 39,
"Discontinued": false,
"layers": [
{
"layer_Layer1": {
"layerType": "top",
"layer": "L1",
"groups": []
}
} ]
},{
"ProductID": 2,
"ProductName": "Chang",
"Supplier": {
"SupplierID": 1,
"SupplierName": "Exotic Liquids"
},
"Category": {
"CategoryID": 1,
"CategoryName": "Beverages"
},
"UnitPrice": 19.0,
"UnitsInStock": 17,
"Discontinued": false,
"layers": [
{
"layer_Layer2": {
"layerType": "top",
"layer": "L2",
"groups": []
}
}
]
}]
在這里,在columns.fields
我給layers[0].layer_Layer1.layer
但有時我得到layers[0].layer_Layer2.layer
。
我們如何在kendo ui中配置它?
柱塞: 這里
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.