custom delete button link to angularjs

3 posts, 1 answers
  1. Bertha
    Bertha avatar
    95 posts
    Member since:
    Aug 2012

    Posted 12 Jul 2017 Link to this post

    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?


  2. Answer
    Tsvetina avatar
    2481 posts

    Posted 14 Jul 2017 Link to this post

    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:

    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.
  3. Bertha
    Bertha avatar
    95 posts
    Member since:
    Aug 2012

    Posted 17 Jul 2017 in reply to Tsvetina Link to this post

    Thanks for the example.
Back to Top