Sumona Salma
Sumona Salma

Reputation: 137

How to handle double click event on kendo grid using angularjs

I am trying to handle double click event for each row on kendo grid.Single click event is working by using k-on-change( k-on-change="methodname(dataItem.val)" ) , but i can not handle double click event from angularjs.

Upvotes: 0

Views: 2290

Answers (1)

Cory Silva
Cory Silva

Reputation: 2811

Try this to get access to the element.

HTML

<div data-kendo-grid="grid" options="gridOptions"></div>

JS

  $scope.$on("kendoWidgetCreated", function(event, widget){
    if (widget === $scope.grid) {
      $scope.grid.element.on('dblclick', function (e) {console.log(e)});
    }
  });

Upvotes: 4

Related Questions