About 242,000 results
Open links in new tab
  1. javascript - How to Make All Columns Toggle Collapse in DataTable

    Oct 14, 2023 · I am using the DataTables library to create a responsive table. I want to achieve a behavior where all columns in the DataTable can toggle the collapse/expand state when clicked, except for the last column. Here's a simplified version of my current code:

  2. DataTables example - Collapsed Panes

    This example shows how the searchPanes.initCollapsed option can be used to collapse all of the panes on initialisation. To do this the searchPanes.collapse option must also be set to true, which is the default. The Javascript shown below is used to initialise the table shown in this example:

  3. javascript - How can I implement collapsing rows the way datatables

    One approach is to have data using white-space: nowrap elements inside the table cells and calculate the min width of each row which it will be the max width of the row data elements. These "break-widths" will be calculated only once when the table is …

  4. Collapsed view of columnsDataTables forums

    Is there a way for me to show a collapsed view of first few columns of a DataTable? So, by default, I want to show the first five columns and when the user clicks on something like "full view" (a small button somewhere appropriate on the page), all the remaining columns appear.

  5. Datatables Expand/Collapse Columns - Websolutionstuff

    In this article, we will see how to expand/collapse columns in datatable. The Datatables API has a number of methods for attaching child rows to a parent row in the Datatable. This can be used to show additional information about a row, useful for cases where you wish to convey more information about a row than there is space for in the host table.

  6. Datatable button expand/collapse row JQuery - Stack Overflow

    Aug 19, 2019 · I am using jQuery Datatable and I want to add a button for expand/collapse all row of my table. But I have an issue for the expand when I have row already expanded, and I click on the Button expand...

  7. Collapsible/Expandable Rows — DataTables forums

    Sep 2, 2020 · Basically it uses var collapsedGroups = {}; to keep track of the collapsed groups and updates it in the rowGroups.startRender function. The click event is used to toggle the group's object in collapsedGroups which is then used in rowGroups.startRender hide, using display: none; CSS, to hide the collapsed groups.

  8. DataTables - Row grouping with expand/collapse and rowcount - JSFiddle

    Debug your Fiddle with a minimal built-in JavaScript console. JSFiddle is used by you and 4+ million other developers, in many companies ... ... and top educational institutions:

  9. How To Create a Collapsible - W3Schools

    To make an animated collapsible, add max-height: 0, overflow: hidden and a transition for the max-height property, to the panel class. Then, use JavaScript to slide down the content by setting a calculated max-height, depending on the panel's height on different screen sizes:

  10. jQuery DataTables: How to expand/collapse all child rows

    Jan 12, 2018 · Demonstrates examples on how to expand/collapse all child rows in a table powered by jQuery DataTables

  11. Some results have been removed
Refresh