Is there a limit of columns you can have searchable?

Is there a limit of columns you can have searchable?

lmartinezlmartinez Posts: 8Questions: 5Answers: 2

I have a table with close to 50 columns available, majority of them are hidden depending on what status my project is in. I have searchable: false on the columns i don't want the user to have ability to search for and others are set as true or left alone since it's true by default.

There are certain instances where i am have to search only for through one column and i am not getting the desired results back.

this for instance returns the expected results

        allDevicesTable.column(1)
            .search("CISCO")
            .draw();

but when I try this:

        allDevicesTable.column(25)
            .search("3")
            .draw();

        allDevicesTable.column(25)
            .search(3)
            .draw();

I do not get the results i am looking for.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @lmartinez ,

    As can be seen in this example, I'm searching on column 25 and all works as expected. I suspect what's happening is that another search is affecting the results. If you look at my example, it's displaying all the column searches in the console, you could try the same to see if a previous search is lingering,

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946

    Are you doing anything with column 25 like columns.render that might affect the data in that column?

    Maybe you can post an example of the original data and column config for that column.

    Kevin

This discussion has been closed.