bgultekin / laravel4-datatables-package

Server-side handler of DataTables Jquery Plugin for Laravel 4
267 stars 108 forks source link

Column Reordering and Filtering #183

Open joeymlink opened 9 years ago

joeymlink commented 9 years ago

I am having some issues with allowing the user to reorder the columns and having column filtering work at the same time.

I am currently using the code that is tagged 1.4.4 I did see this issue that was closed over a year ago, but it didn't seem to be resolved. https://github.com/bllim/laravel4-datatables-package/issues/17

It seems like in the filtering function, it is calling the columns based on the index instead of the column name.

Probably missing something obvious, but haven't quite figured it out yet. Basically if the columns in the query are not in the exact order that the display is showing, then the filters seem to be filtering a different column. I am doing a pretty basic "make(true)" call, and everything else seems to work great.

Let me know if you have any suggestions.