kendo local and remote datasource

纵然是瞬间 提交于 2019-12-08 07:37:12

问题


I am integrating with the spotfire web player, when I select rows I can trap the event and send the rows to my datasource, however, when I save I'd like to call a service. Is there a way to combine local data source and remote?

Thank you.


回答1:


What do you mean by combine local data and remote?

Variant 1: You can use dataSource.data - to set the initial records used. And define separate transport that will be used for future requests (after the initial one)

Variant 2: You can define the dataSource.transport.read as function and thus perform the binding on your own (allowing you to fetch the data either from local source or from remote service)

Variant 3: You can use dataSource.data method to set the records after the Grid is initialized.

All those configurations/settings are listed in the API reference.



来源:https://stackoverflow.com/questions/18916097/kendo-local-and-remote-datasource

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