I am trying to use class directive to attach click event to the next page button on the kendo grid.
Directive:
.directive('kPagerNav', function () {
return {
restrict: 'C',
controller: function ($scope, $element, $attrs, $location) {
if (typeof $scope.testFunc === "function") {
$element.click(function () {
$scope.testFunc();
});
}
}
}
})
Example http://dojo.telerik.com/AKiqO
I have exactly the same directive working for a 'cancel changes' button , but I can't get next page click working.