So what I want to do is have different key and value for the dropdown?
What I am currently doing is below:
g.column name: 'Status',attribute: 'Status', custom_filter: %w(New Paid Cancelled), auto_reload: true do |task|
@statusValsMap[task.Status]
end
What should I do in custom filter that its value when selected is integer which is in the database and its displays the different values??
http://wicegrid.herokuapp.com/custom_filters2
I have the status vals stored in database as integer vals, like below:
So what I want to do is have different key and value for the dropdown?
What I am currently doing is below:
What should I do in custom filter that its value when selected is integer which is in the database and its displays the different values?? http://wicegrid.herokuapp.com/custom_filters2