Creating Edit/Delete buttons using server side processing (refs #16)
See original GitHub issueI 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:
- Created 9 years ago
- Comments:13 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Replace
ng-click="showModal(' + data + ')"
By
ng-click="showModal(\'' + data + '\')"
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