When allowing multiple sort columns in a grid, a request query string is constructed like this:
(first sort field is number descending, second name ascending). My back-end (RubyOnRails) doesn't understand this. To have it retrieve an array, it should receive "_sortBy[]" twice. I believe PHP expects the same.
Until now I've solved this by overriding transformRequest() in the data source and this might be the right way, but maybe there's an easier way? I will look into a solution in RubyOnRails also. My goal at the moment is to reduce my custom code as much as possible.
Code:
_sortBy=-number&_sortBy=name
Until now I've solved this by overriding transformRequest() in the data source and this might be the right way, but maybe there's an easier way? I will look into a solution in RubyOnRails also. My goal at the moment is to reduce my custom code as much as possible.
Comment