Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以 knockout-kendo 有一个名为 data 的选项,而 knockout-kendo 有一个名为 dataSource 的属性。当我在不同值的 kendogrid 上同时指定数据和数据源时,两者之间有什么区别以及两者如何交互/更改
从 0.6.2 版开始,您可以为选项传递实际数据、数据源配置或现有的 Kendo 数据源 (kendo.data.DataSource) data。
data
在旧版本中,您有时必须在选项中传递null并data传递您现有的数据源 dataSource。
null
dataSource
因此,此时您应该可以只使用data.