pontikis / bs_grid

Bootstrap Datagrid
MIT License
182 stars 63 forks source link

Server Side Filtering #2

Open krutoileshii opened 10 years ago

krutoileshii commented 10 years ago

Can you suggest the best way to move the filtering an pagination out to the server?

Currently working with a db with over a million records and would like to hit the db for filtering, pagination and sorting.

pontikis commented 10 years ago

Concerning filtering you may use useFilters: false So, you can manage filtering in anyway you want. At this time, there is not a similar option for pagination.

krutoileshii commented 10 years ago

I'm just learning a but of php and trying to make a wrapper class to your plug-in using Laravel. After looking at the code you have I think I have an idea on how to do it. On May 20, 2014 11:34 PM, "Christos Pontikis" notifications@github.com wrote:

Concerning filtering you may use useFilters: false So, you can manage filtering in anyway you want. At this time, there is not a similar option for pagination.

Reply to this email directly or view it on GitHubhttps://github.com/pontikis/bs_grid/issues/2#issuecomment-43713887 .

derrekbertrand commented 9 years ago

A bit old, but I too am using this in Laravel development! This is a controller that responds to basic fetch and sort functionality: https://gist.github.com/derrekbertrand/23157faf0aa982fd71b6