标签: javascript kendo-ui kendo-grid
我试图在JavaScript中从Kendo Grid获取隐藏的列字段名称。有没有办法获得所有隐藏的列字段名称?
答案 0 :(得分:3)
网格的每个{"id_real": "50", "id_virt": "40", "purchase_status":"done", "payment":"done"} 都有一个column属性。如果hidden属性为true,您可以访问列并构建field项数组:
{"id_real": "50", "id_virt": "40", "purchase_status":"done", "payment":"done"}
column
hidden
field
Dojo example来演示。