如何使 kendo 网格列在第一次加载时不可见
How to make kendo grid column not visible at first load
我在 kendo 网格中有此列设置
columnMenu: true,
columns: [
{field: 'code'},
{field: 'name'}
]
我想让名称字段首先隐藏。但是用户可以从列菜单中使其可见。我该怎么做?
它在 Kendo UI 文档中。
columnMenu: true,
columns: [
{ hidden: true, field: "id" },
{ field: "name" } ],
我在 kendo 网格中有此列设置
columnMenu: true,
columns: [
{field: 'code'},
{field: 'name'}
]
我想让名称字段首先隐藏。但是用户可以从列菜单中使其可见。我该怎么做?
它在 Kendo UI 文档中。
columnMenu: true,
columns: [
{ hidden: true, field: "id" },
{ field: "name" } ],