kendo本地和远程数据源 [英] kendo local and remote datasource

查看:61
本文介绍了kendo本地和远程数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Spotfire网络播放器集成,当我选择行时,我可以捕获事件并将行发送到我的数据源,但是,当我保存时,我想调用服务.有没有一种方法可以将本地数据源与远程数据相结合?

谢谢.

解决方案

结合本地数据和远程是什么意思?

变量1 :您可以使用dataSource.data-设置使用的初始记录.并定义单独的传输方式,以用于将来的请求(在最初的请求之后)

变体2 :您可以将dataSource.transport.read定义为函数,从而自己执行绑定(允许您从本地源或远程服务中获取数据)

变体3 :初始化网格后,可以使用dataSource.data方法设置记录.

所有这些配置/设置在 API 参考中列出.

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.

解决方案

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.

这篇关于kendo本地和远程数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆