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
gravsten
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
Oops, now it seems to be working fine in this basic example...
but the aforementioned workaround is still required in my app.
When defining
columns
all of the columns in the table need to be listed. If there isn't a config for a particular column thennull
is used as. a placeholder. See thecolumns
docs for more details.Kevin