如何使用助手为 Kendo 指定架构?

How can I specify schema for Kendo using helper?

我的数据位于数据变量 "data" 中,其中包含我要提供给 Multi Select 的所有数据的数组。我知道有一种叫做 schema 的东西,它指定 json 中包含数据的字段。我已经试过了

.Schema(schema => schema.Data((object data) => { return data; }))

也试过没有助手。有人可以告诉我用助手定义模式的语法吗?这是我得到的错误

Kendo 未定义

我知道这是同一个问题 How do you set the data function for a Kendo DataSource using the Razor HTML Helpers?

但这个问题也仍然没有答案

来自 Telerik 技术支持,

Generally speaking, this is not supported by the MultiSelect MVC wrapper and
its dataSource always expects a collection, but can be achieved by overriding the
reader.data function e.g.

    multiselect.dataSource.reader.data = function (data) { return data.values};