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.

How to remove a row form the angular datatable V7.Y.Z and rearrange the index?

this.datatableElement.dtInstance.then((dtInstance: DataTables.Api) => {
            dtInstance.splice(1,1);
          });

This doesnt work

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
thomasmanhocommented, Apr 25, 2019

I simply used a Jquery approach of the original Jquery Datatable.

In HTML

<table datatable [dtOptions]="dtOptions" class="row-border">
   <tr>
      <th>header</th>
   </tr>
   <tr id="id-123">
      <td>something</td>
   </tr>
</table>

In Typescript

let dtInstance = await this.dtElement.dtInstance;
dtInstance.row('#id-123').remove();
dtInstance.draw();
0reactions
stale[bot]commented, Dec 13, 2020

This issue has been closed due to inactivity. Please feel free to re-open the issue to add new inputs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete a row, column, or cell from a table - Microsoft Support
Right-click in a table cell, row, or column you want to delete. · On the menu, click Delete Cells. · To delete one...
Read more >
Insert or delete rows and columns - Microsoft Support
Select any cell within the row, then go to Home > Insert > Insert Sheet Rows or Delete Sheet Rows. · Alternatively, right-click...
Read more >
Removing Rows or Columns from a Matrix - MATLAB & Simulink
The easiest way to remove a row or column from a matrix is to set that row or column equal to a pair...
Read more >
The Best Way to Delete a Row in Excel: A Shortcut Guide
To do this, select the row that you want to delete and then press the "Ctrl+Shift+5" keys on your keyboard or right-click on...
Read more >
Delete Rows & Columns in DataFrames using Pandas Drop
To delete rows from a DataFrame, the drop function references the rows based on their “index values“. Most typically, this is an integer...
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