You can achieve this by installing your own template and repeat the number of phone numbers that you have.
app.controller('MainCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.gridOptions = {
rowHeight:50,
columnDefs: [
{ field: 'name' },
{ field: 'phoneList', name: 'Phone Numbers', cellTemplate:'<div ng-repeat="item in row.entity[col.field]">{{item}}</div>'}
],
enableColumnResizing: true
};
$http.get('data.json')
.success(function (data) {
$scope.gridOptions.data = data;
});
}]);
Height can be a problem. Take a look at this plnkr http://plnkr.co/edit/c65CZm19bGJbWfZT15u6?p=preview
source
share