Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SlickGrid RemoteModel vs. Dataview Model

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.

like image 801
paradox Avatar asked Mar 14 '12 17:03

paradox


1 Answers

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.

like image 188
Tin Avatar answered Sep 16 '22 14:09

Tin