Blank line in SearchBuilder "Data" column list.

Blank line in SearchBuilder "Data" column list.

tangerinetangerine Posts: 3,350Questions: 37Answers: 394

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

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Hi tangerine,

    I think you'll need to set the searchBuilder.columns option, like in this example.

    Allan

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    Oops! My own silly fault. Should have known to check the docs first. Sorry!
    Thank you.

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin

    The "global" 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

Sign In or Register to comment.