lib/rails_powergrid/concern/grid_concern.rb
#Get option list for some fields
Get option list for some fields
Get option list for some fields
def options_field
    load_resource
    col = @grid.get_column(params[:field])
    if col
      render :json => col.get_opts_for_select(@resource)
    else
      render :json => { status: "ERROR" }, status: :not_found
    end
  end
def options_field load_resource col = @grid . get_column ( params [ :field ] ) if col render :json => col . get_opts_for_select ( @resource ) else render :json => { status : "ERROR" } , status : :not_found end end
Get option list for some fields
Get option list for some fields