jquery-datatables-checkboxes icon indicating copy to clipboard operation
jquery-datatables-checkboxes copied to clipboard

"indeterminate" is not work

Open atkuo090 opened this issue 2 years ago • 3 comments

image

Problem with Checkbox 1.2.12. DataTables 1.11.5: When I just select one item ,it still appear select-all

atkuo090 avatar May 24 '22 06:05 atkuo090

Sorry, I cannot replicate it.

I updated a few examples (Basic Initialization, Styling - Awesome Bootstrap Checkbox) to 1.2.13 and they all work correctly in Firefox, Chrome and MS Edge.

If you could share an example demonstrating the problem based on one of the examples above, that would help to locate the issue. Thanks!

mpryvkin avatar May 30 '22 17:05 mpryvkin

@mpryvkin

Update Solved:

https://j0t3p9.sse.codesandbox.io/

sadeghbarati avatar May 31 '22 05:05 sadeghbarati

Sorry, I cannot replicate it.

I updated a few examples (Basic Initialization, Styling - Awesome Bootstrap Checkbox) to 1.2.13 and they all work correctly in Firefox, Chrome and MS Edge.

If you could share an example demonstrating the problem based on one of the examples above, that would help to locate the issue. Thanks!

Basic Initialization

'ajax': 'https://gyrocode.github.io/files/jquery-datatables/arrays_id.json',
//without columns

Modified Basic Initialization

'ajax': 'https://gyrocode.github.io/files/jquery-datatables/objects.json',

Solved

Known Limitations Column containing checkboxes must have unique data. Using columns.data option set to null for the column containing checkboxes will result in unexpected behavior. Selecting rows on all pages using columns.checkboxes.selectAllPages option in server-side processing mode is currently not possible. In this mode only rows on the current page are selected, when “select all” control is clicked.

I had read this before but I thought to make a checkbox column it must be made empty column with data: null so data and checkbox do not conflict

sadeghbarati avatar May 31 '22 05:05 sadeghbarati

The problem was with using objects as data and not using columns.data option to specify data to be used by column containing checkboxes.

The solution is to specify data using columns.data option, see jsfiddle.net/1as42f6t/.

mpryvkin avatar Aug 14 '23 16:08 mpryvkin