question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataTable select all checkbox

See original GitHub issue

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Summary

I am using DataTable with search in toolbar. When I search something and then click select all checkbox, I found it will select all data actually. In my opinion, in this situation, the search result data usually be selected. So my question is after typing something in search bar, which is better, select all data or select all search result data? Or I used this component by mistake?

Relevant information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisconnors-ibmcommented, Jan 7, 2020

If I understand the description, there’s a data set (m) represented in a table, and a search operation filters that set down to some smaller set of results (m-n).

If the table is displaying the result set (m-n) as a result of any user operation, including search (or filtering) then the Select all checkbox should select the results (m-n) not the entire data set (m).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select All Checkbox using Select Extension - DataTables
You can create a select all checkbox then use rows().select() and rows().deselect() to select or deselect all rows depending on the state fo...
Read more >
Datatables Select All Checkbox - jquery - Stack Overflow
What's the best way to implement the select all checkbox after they are created via the columnDef attributes? jquery · datatables · Share....
Read more >
Datatable Select all checkbox using jQuery - Easy method
How to do datatable select all checkbox using jQuery. Previously we discussed about Select all or Deselect all checkbox.
Read more >
How to select all checkbox from datatable by one click
How to select all checkbox from datatable by one click. Copy Code <th>{{ Form::checkbox('select_all' ,'1',false,array('id' => 'select-all')) }}</th> <td>{{ ...
Read more >
jQuery : Datatables Select All Checkbox - YouTube
jQuery : Datatables Select All Checkbox [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] jQuery : Datatables Select All ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found