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.

Creating Edit/Delete buttons using server side processing (refs #16)

See original GitHub issue

I want to add edit and delete icons in my table so that user can easily edit as well as delete records. When user click on edit icon they should be navigated to edit page.

I need exactly the same stuff for server side processing. What I found out so far that I can create the column dynamically with:

$scope.dtColumns = [
...
DTColumnBuilder.newColumn(-1).withTitle('Edit').renderWith(function(data, type, full) {
  return '<button ng-click="alert(\'edit\')">Edit</button><button ng-click="alert(\'delete\')">Delete</button>';
})
...
];

Of course the click handler doesn’t work because it is not parsed by Angular. Or can I achieve my goal with another approach?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
samueldotfrcommented, Jul 3, 2017

Replace ng-click="showModal(' + data + ')"

By ng-click="showModal(\'' + data + '\')"

1reaction
DurgpalSinghcommented, Nov 21, 2015

I do not want to use $compile and also not using the Angular way… so can you suggest me any other way to bind edit and delete button to angular data table. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server-Side Example SSP Class Working (but adding edit ...
class.php. I have it working but attempting to make buttons that can edit and delete. I am able to do this without the...
Read more >
How to edit a cell and delete a row from dataTable at ...
Data is shown in table, but I want to include edit/delete option for each cell in dataTable. Here is my client side code...
Read more >
jQuery Datatable Server Side Processing in Asp.Net MVC
jQuery Datatable Server Side Processing in Asp.Net MVCIn this video, we will discuss how to implement server - side processing in jQuery ...
Read more >
DataTables Ajax Server Side Examples by Keenthemes
Customer Name Email Company Payment... Wren Meegin wmeegin99@netscape.com Altenwerth‑Kessler **** 5580 Margaretta Strathdee mstrathdee3u@ftc.gov Sipes‑Haag **** 6112 Eleni Ponting eponting6u@epa.gov Hettinger, Donnelly and Thiel **** 6866...
Read more >
Editor example - Server-side processing
Thus, to switch your table to server-side processing mode, all you need to do is use the DataTables serverSide option, setting it to...
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