SearchPanes with 4+ set columns fails to show the last one's pane

SearchPanes with 4+ set columns fails to show the last one's pane

gravstengravsten Posts: 17Questions: 5Answers: 0

Link to test case:
https://live.datatables.net/berafawi/1/edit

Description of problem:
If there are 4+ columns set to be shown in SearchPanes, the last column (here named 'salary') shows no pane:

      columns: ['position:name', 'office:name', 'age:name', 'salary:name'],

As a workaround, I add a dummy column at the end:

      columns: ['position:name', 'office:name', 'age:name', 'salary:name', ''],

So far this workaround has not triggered any further issue.

Answers

  • gravstengravsten Posts: 17Questions: 5Answers: 0

    Oops, now it seems to be working fine in this basic example...
    but the aforementioned workaround is still required in my app.

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    When defining columns all of the columns in the table need to be listed. If there isn't a config for a particular column then null is used as. a placeholder. See the columns docs for more details.

    Kevin

Sign In or Register to comment.