This is a migrated thread and some comments may be shown as answers.

custom delete button link to angularjs

2 Answers 421 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 12 Jul 2017, 02:45 PM

I want to do some checking and add some code before and after deleting the row in kendo grid. I don't want the default delete behaviour.  In column, I add the custom field.  It can link to javascript test function but cannot link to angularjs function.  If I move that template to the html page, it can link to angularjs function.

columns: [ ...

           { field: "X", title:"", template: '<a ng-click="deleteSerial()" onclick="test()" class="k-button" style="width:15px">X</a>', width: "30px" }
],

What am I missing or any other better to do it?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 14 Jul 2017, 11:51 AM
Hello Bertha,

I tried a template like yours (using ng-click directive) and it works on my side. Here is a sample Dojo where I delete rows using a custom button from a template:
http://dojo.telerik.com/@tsveti/OFiGe/4


Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Bertha
Top achievements
Rank 1
answered on 17 Jul 2017, 02:22 PM
Thanks for the example.
Tags
Grid
Asked by
Bertha
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Bertha
Top achievements
Rank 1
Share this question
or