Search
23523 results 181-190
Reference
row().index()› Get the row index of the selected row.data for rows and columns in internal indexes fororder.listener()› Add an ordering listener to an element, for a given column.equally order() and its columns counterparts could also beiterator()› Iterate over a result set of table, row, column or cell indexesset by tables(), rows(), columns() and cells()) you oftenflatten()› Flatten a 2D array structured API instance to a 1D array structure.such as rows() and columns() which can return 2Dfilter()› Create a new API instance with all elements from the result set which pass a given test.such as rows() and columns() you may wish toeach()› Iterate over the contents of the API result set.such as rows() and columns() you may wish todestroy()› Destroy the DataTables in the current context.a different number of columns in the table, ascolumn.index()› Convert between column index formatsthe visible indexes of columns, since that is thecolumn()› Select a single column from a table.provided resolves to multiple columns, the result will becolumn().visible()› Get / set the visibility of a single selected column.Showing and hiding columns in a DataTable can
Forum
- 19th Oct 2022How do I allow case-sensitive sorting on all columns with correct numerical sorting?Thank you for the help. It was fairly straight forward to add a CSS class to all the columns except the %. Now it's working like I wanted.
- 18th Oct 2022Iam trying to implement multiple column search. The below code searches for text in both the columnsYes, using column().search() across multiple columns is an AND search. You will need to create a Search Plugin to perform OR searching. Something like this example: http://live.datatables.net/hocoyuke/4/edit Kevin
- 11th Oct 2022export button options for excluding columnsSee if this Buttons export columns selector example answers your question. Kevin
- 29th Sep 2022DataTables : using button - search in multiple columns using OR operatornumber for those 3 columns where I want to
- 29th Sep 2022Complex headers and select filters on specific columnstagging the first two columns of the second header
- 28th Sep 2022How not to allow changing the width of fixed columns when user resizes others columns?How are you resizing the columns? The best thing to do is to provide a link to your page or a test case showing the issue so we can help debug. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case Kevin
- 26th Sep 2022Responsive - How to remove hidden columnsI'm not seeing an id on those columns, so not sure if I understand the issue. That said, this example from this thread should help - it's closing any opened child rows each time another child is opened. Colin
- 14th Sep 2022In Column Visibility buttons how display Alpha betical Order of ColumnsThis is the point at which you could order the columns alphabetically if you watched to add that feature. A PR with that feature would be welcome. Allan
- 12th Sep 2022How to unlock freezed columns when screen width changes0 }, initComplete: function () { this.api() .columns() .every(function () { var column = this;
- 30th Aug 2022Add link to cell using dynamic columns from nested JSON data.but I'm targeting the columns in a hacky way: