Dear all
I would like to use the cellsrenderer function to get customized content in the grid cells and some of the elements should be clickable i.e. bound with ng-click to a scope function:
$scope.myfunction = function() {
// do something
};
var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
return '<span ng-click="myfunction()">mylink</span>;
}
$scope.gridSettings = {
source: source,
columns: [
{ text: 'First Name', datafield: 'firstname', width: 100 },
{ text: 'Last Name', datafield: 'lastname', width: 100, cellsrenderer: cellsrenderer }
]
};
However, it does not seem to execute the ng-click. Why?
Thanks in advance for your help!