剔除Kendo网格小部件中的data和dataSource有什么区别? [英] What is the difference between the data and dataSource in knockout-kendo grid widget?
问题描述
因此,基因剔除剑道具有一个名为data的选项,而基因剔除剑道具有一个名为dataSource的属性.两者之间有什么区别,当我在不同值的kendogrid上同时指定数据和数据源时,两者之间如何交互/更改?
So knockout-kendo has a option called data and knockout-kendo has a property called dataSource. What's the difference between the two and how do both interact with one another/change when I specify both a data and a datasource on the kendogrid of different values
推荐答案
从0.6.2版开始,您可以在其中传递实际数据,dataSource配置或现有的Kendo dataSource(kendo.data.DataSource). data
选项.
As of version 0.6.2, you can pass either the actual data, dataSource config, or an existing Kendo dataSource (kendo.data.DataSource) in for the data
option.
在较旧的版本中,有时必须为data
传递null
,然后在dataSource
选项中传递现有的dataSource.
In older versions, you would sometimes have to pass null
for data
and then pass in your existing dataSource in the dataSource
option.
因此,在这一点上,只需使用data
就可以了.
So, at this point you should be fine with just using data
.
这篇关于剔除Kendo网格小部件中的data和dataSource有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!