def dump_filter_parameters_as_hidden_fields(grid)
      unless grid.is_a? WiceGrid
        raise WiceGridArgumentError.new('dump_filter_parameters_as_hidden_fields: the parameter must be a WiceGrid instance.')
      end

      grid.get_state_as_parameter_value_pairs(true).collect do|param_name, value|
        hidden_field_tag(param_name, value, id: "hidden-#{param_name.gsub(/[\[\]]/, '-')}")
      end.join("\n").html_safe
    end
def dump_filter_parameters_as_hidden_fields(grid)
      unless grid.is_a? WiceGrid
        raise WiceGridArgumentError.new('dump_filter_parameters_as_hidden_fields: the parameter must be a WiceGrid instance.')
      end

      grid.get_state_as_parameter_value_pairs(true).collect do|param_name, value|
        hidden_field_tag(param_name, value, id: "hidden-#{param_name.gsub(/[\[\]]/, '-')}")
      end.join("\n").html_safe
    end
This method dumps all HTTP parameters related to filtering and ordering of a certain grid as hidden form fields.
 This might be required if you want to keep the state of a grid while reloading the page using other forms.

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