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

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

问题描述

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

谢谢.

解决方案

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

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

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

变体3:可以在Grid初始化后使用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.

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

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