结合 Knockout.js + KendoUI - 你的经验是什么? [英] Combining Knockout.js + KendoUI - What has been your experience?

查看:14
本文介绍了结合 Knockout.js + KendoUI - 你的经验是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我看到 KendoUI 包含了一个与 Knockout.js 集成的示例:http://demos.kendoui.c​​om/web/integration/index.html

So I see that KendoUI has included an example of integration with Knockout.js: http://demos.kendoui.com/web/integration/index.html

然而,这看起来是一个非常简单的例子.

However, this looks like a pretty trivial example.

根据这篇文章,看起来绑定到像 Kendo 的网格这样的东西会更复杂:http://www.kendoui.c​​om/forums/ui/grid/knockoutjs-example-for-grid.aspx

According to this post, it looks like binding to something like Kendo's grid would be much more involved: http://www.kendoui.com/forums/ui/grid/knockoutjs-example-for-grid.aspx

看起来他们正在创建自己的 MVVM 实现来尝试解决问题.

It also looks as if they are creating their own MVVM implementation to try and solve the issues.

这里有没有人将 KendoUI 和 Knockout.js 用于使用一些更复杂组件的非平凡应用程序?

Has anyone here used KendoUI and Knockout.js for non-trivial apps using some of the more complex components?

推荐答案

我一直在对整合 KO 和 Kendo 进行大量研究.我非常尊重 Telerik 的员工,他们制作了很棒的产品.我期待剑道的伟大之处.这时候,整合KO和Kendo就不是那么简单了.例如,他们在 Kendo 网站上的 KO 示例本身就有一个错误.这个标题在哪里?Kendo 团队正在考虑如何更好地与 KO 集成的一些选项......我认为"他们的关键是连接到 KO 的订阅,以便在发生更改时可以通知 Kendo.一种方法是让 Kendo 为其控制套件创建 KO 绑定处理程序.事实上,这确实有效,但显然他们必须花时间开发、测试和支持.所以我不知道他们是否会这样做.

I've been doing a lot of research into integrating KO and Kendo. I have the utmost respect for the folks at Telerik and they make great products. I expect great things from Kendo. At this time, integrating KO and Kendo is not straightforward. For example, their KO example on the Kendo web site itself has a bug in it. Where is this heading? The Kendo team is considering some options on how to integrate better with KO ... what I "think" they key would be is to hook into KO's subscriptions so Kendo can be notified when changes occur. One way to do this is for Kendo to create KO binding handlers for their control suite. In fact, this does work, but its obviously something they have to put time to dev, test, and support . So I don;t know if they will or wont do that.

我很高兴详细说明集成问题,但如果您不想,我不想陷入困境:)

I'm happy to elaborate on the integration issues, but I dont want to go down a rabbit hole if you dont want to :)

Kendo 正在研究他们自己的 MVVM 解决方案的一些想法.这个想法是拥有一个适用于 Kendo 或任何其他 javascript 库的 MVVM 解决方案.我期待看到他们想出什么.

Kendo is working on some ideas for an MVVM solution of their own. The idea would be to have an MVVM solution that works with Kendo or any other javascript library. I look forward to seeing what they come up with.

目前的最终结果是,我不想亲自整合这两个套件.我已经用我的 2 美分向 Kendo 表示同意,请他们支持 KO 集成.我也鼓励你这样做:)

The net result is for now, i am not trying to integrate the 2 suites personally. I've chimed in with my 2 cents to Kendo to ask them to support KO integration. I encourage you to do so too :)

我希望这会有所帮助.

这篇关于结合 Knockout.js + KendoUI - 你的经验是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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