def filter_and_order_state_as_hash(grid)
      {
        grid.name => {
          'f'               => grid.status[:f],
          'order'           => grid.status[:order],
          'order_direction' => grid.status[:order_direction]
        }
      }
    end
def filter_and_order_state_as_hash(grid)
      {
        grid.name => {
          'f'               => grid.status[:f],
          'order'           => grid.status[:order],
          'order_direction' => grid.status[:order_direction]
        }
      }
    end
This method dumps all HTTP parameters related to filtering and ordering of a certain grid in the form of a hash.
 This might be required if you want to keep the state of a grid while reloading the page using Rails routing helpers.

 The only parameter is a grid object returned by +initialize_grid+ in the controller.