Search
23523 results 31-40
Reference
columns.className› Class to assign to each cell in the columnQuite simply this option adds a class to each cell in a column, regardless of if the table source is from DOM, Javascript or Ajax. This can be useful for styling columns.columns.adjust()› Recalculate the column widthsenabled (to align the columns) so if a tablecolumns().widths()› Get the widths of a group of columns.gets the widths of columns, but in this casecolumns().visible()› Get / set the visibility of the selected columns.Showing and hiding columns in a DataTable cancolumns().types()› Get the data types for selected columns.data types for selected columns. This is basically thecolumns().titles()› Get / set the title for multiple columns.the titles of multiple columns (which are also settablecolumns().search.fixed()› Get / set a named search to apply to a column.to apply to the columns only - it does notcolumns().search()› Search for data in the selected columns.for data on specific columns. DataTables does not havecolumns().render()› Get rendered data for a collection of columnsin the form of columns). This allows the samecolumns().orderable()› Get information about the orderable status of the selected columns.This method provides the ability to programmatically check if the given columns are orderable by the end user (a click on the header cell) and optionally to get the ordering directions that the column can take, as defined by columns.orderSequence.
Forum
- 4th Mar 2025Header and body column order mismatched when using exportOptions columns for print buttonIndex order is document order for the columns in DataTables. That isn't the case with rows, but it is for columns. The ColReorder extension will actually modify the column order in DataTables' internals. Allan
- 22nd Feb 2025Search specific columnsvalue to the two columns of interest using the
- 16th Feb 2025Ordering columns with different date formatsdata table has two columns with different date formats.
- 29th Jan 2025Responsive, Buttons and Colvis - Remove hidden columns from colvisfirst example :). OnLoad Visible columns are selected in the
- 24th Jan 2025Changing the width of one column changes the width of the other columns with colResizeThank you Kevin. I would like to know what's the best option to change the width of the columns of a DataTable.
- 23rd Jan 2025Redraw Datatables for data that is being passed into columns.options such as the columns. It does for the
- 21st Jan 2025Problem with colvis collectionLayout: 'fixed columns' producing errorI clicked on your nightly build link, and from what I can tell, it's still not functioning how version 2.1.8 used to function. The list of columns should be displayed over the table, not under it.
- 17th Jan 2025Hiding the columns in the table but want to export the hidden columns data in exportcolumns.visible to control if a column is hidden or not in the DataTable. Then for export, use the columns option of the export button to tell it what columns to include. See this example for how to do that. Allan
- 17th May 2024Column visibility with many columns - popup goes off screenusing the buttons with columns visibility button. Everything works
- 8th Jan 2025Still confused about centering dt-numeric columnsthe columns.type to the columns with the matching date