SlickGrid RemoteModel与Dataview模型 [英] SlickGrid RemoteModel vs. Dataview Model

查看:138
本文介绍了SlickGrid RemoteModel与Dataview模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在使用SlickGrid的slick.remotemodel.js模型实现来实现其远程Ajax加载功能.在此示例中,唯一提供的过滤是一个简单的Search元素.我们希望实现的是每列的更强大的过滤方法,例如本示例中使用的方法:

We're currently using the slick.remotemodel.js model implementation of SlickGrid for its remote Ajax loading functionality. With this example the only filtering provided is a simple Search element. What we're looking to accomplish is a much more robust filtering method of each column, such as what is used in this example: http://mleibman.github.com/SlickGrid/examples/example-header-row.html

有没有一种方法可以轻松地将Dataview模型的功能与RemoteModel结合在一起?仅仅是将Dataview的功能合并到RemoteModel代码中的问题,还是每个功能的更多基本重叠?

Is there a way to easily combine the features of the Dataview model with the RemoteModel? Is it merely a matter of combining the functions of Dataview into the RemoteModel code, or is there more of a fundamental overlap in the functionality of each?

我能够找到以下讨论–似乎更多的是替代方法,而不是集成的解决方案:

I was able to find the following discussion - which seems to be more of a workaround rather than an integrated solution: Slickgrid Filtering without Dataview

也许我只是在想这个,任何建议都将不胜感激.

Maybe I am just over thinking this, any advice would be greatly appreciated.

推荐答案

DataView会进行所有排序/分组/过滤/其他操作.在客户端上,因为它可以访问所有数据.如果要在服务器上执行此操作,则必须在服务器端数据提供程序中实现所有这些功能.由于每个人的后端和需求都不同,因此没有规定的方法.

DataView does all of its sorting/grouping/filtering/etc. on the client since it has access to all of the data. If you're doing it on the server, you'll have to implement all that in your server-side data provider. There's no prescribed way of doing this since everybody's backend and needs are different.

这篇关于SlickGrid RemoteModel与Dataview模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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