What is the difference between the data and dataSource in knockout-kendo grid widget?

我的未来我决定 提交于 2019-12-13 00:09:55

问题


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


回答1:


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.

In older versions, you would sometimes have to pass null for data and then pass in your existing dataSource in the dataSource option.

So, at this point you should be fine with just using data.



来源:https://stackoverflow.com/questions/22688217/what-is-the-difference-between-the-data-and-datasource-in-knockout-kendo-grid-wi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!