Closed zedalaye closed 3 years ago
Don't know if it was the right way to solve this issue, I changed my view_columns definition to make "virtual column" not searchable :
def view_columns
@view_columns ||= {
...
:'12' => { searchable: false }
}
end
Don't know if it was the right way to solve this issue, I changed my view_columns definition to make "virtual column" not searchable :
It's definitely the way to go.
What I do in this case is binding the column to { source: Model.id, searchable: false, orderable: false }
Hello,
Since I upgraded AjaxDatatablesRails to the latest master I have this error:
AjaxDatatablesRails::Error::InvalidSearchColumn (Check that column '12' exists in view_columns):
My Datatable class is defined as:
The column #12 is reserved for displaying tool buttons (like a delete button) so there is no data in this column.
When I uncomment the "column 12 definition" in
view_columns
, the error disappears but the datatable is not searchable, I get an error in column.rb line #39How do I fix that ?
Thank you.
-- Pierre Y.