Blank line in SearchBuilder "Data" column list.
Blank line in SearchBuilder "Data" column list.
![tangerine](https://secure.gravatar.com/avatar/4cc9cdafd60f3575f667860c97da07f9/?default=https%3A%2F%2Fvanillicon.com%2F4cc9cdafd60f3575f667860c97da07f9_200.png&rating=g&size=120)
Link to test case: I can give the devs access to the site if necessary.
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I have a blank line in the SearchBuilder "Data" column list. It is the first "column" in the dropdown list, which corresponds to the position of my dedicated Responsive column.
Using it in a search gives a "Column not found: 1054 Unknown column" message, unsurprisingly. (Just checking, for the sake of completeness.)
My Responsive column is defined thus:
columns: [
// Control column for DataTables Responsive.
{
data: null,
className: 'dtr-control',
orderable: false,
searchable: false,
defaultContent: ""
},
Has anyone seen anything similar?
This question has an accepted answers - jump to answer
Answers
Hi tangerine,
I think you'll need to set the
searchBuilder.columns
option, like in this example.Allan
Oops! My own silly fault. Should have known to check the docs first. Sorry!
Thank you.
The "global"![:) :)](https://datatables.net/forums/resources/emoji/smile.png)
searchable
properties are actually a bit of a problem. There are many different interpretations for them and I can see how you might have thought what you did. Indeed, perhaps that should be the default and they could then be re-enabled with the SearchBuilder options... :hands-up-in-the-air:Allan