Plugins Select and columnControl enabled, the input to select all rows does not appear in the header

Plugins Select and columnControl enabled, the input to select all rows does not appear in the header

paulobocpauloboc Posts: 12Questions: 0Answers: 0
edited September 29 in Free community support

When both the select and columnControl plugins are enabled, the input to select all rows does not appear in the header. However, if I disable the columnControl plugin, the input shows up.

Last version 2.3.4

columnControl: [
'search',
'order',
[
'searchList',
{
extend: 'dropdown',
content: ['colVis'],
},
],
],
select = {
style: 'multi',
}

Replies

  • kthorngrenkthorngren Posts: 22,286Questions: 26Answers: 5,125

    You might need to do something like this example to not apply ColumnControl to the first column. Set the columnDefs.target to 0.

    Kevin

  • allanallan Posts: 65,162Questions: 1Answers: 10,796 Site admin

    It does seem to work here if I modify your code slightly to have a checkbox column (which your message suggests you have).

    However, totally agree with Kevin that you are unlikely to want a dropdown and search on that column. This example disables it.

    Allan

  • paulobocpauloboc Posts: 12Questions: 0Answers: 0

    Thanks @kthorngren and @allan - it worked after disabling columnControl on the checkbox column.

  • allanallan Posts: 65,162Questions: 1Answers: 10,796 Site admin

    Awesome - thanks for letting us know you've got it working as you need :).

    Allan

Sign In or Register to comment.