SlickGrid RemoteModel vs. Dataview Model

僤鯓⒐⒋嵵緔 提交于 2020-01-13 02:47:28

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/9706833/slickgrid-remotemodel-vs-dataview-model

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