angular.module('listCtrl', ['ejangular'])
.controller("PhoneListCtrl", function ($scope) {
$scope.columns = [
{ field: "EmployeeID", headerText: 'Employee ID', textAlign: ej.TextAlign.Right, width: 75 },
{ field: "FirstName", headerText: 'First Name', textAlign: ej.TextAlign.Left, width: 100 },
{ field: "City", headerText: 'City', textAlign: ej.TextAlign.Left, width: 100, customAttributes: { "id": "{{:EmployeeID}}" } }, // jsrender syntax usage in custom Attribute
{ field: "Title", headerText: 'Title', textAlign: ej.TextAlign.Left, width: 120 },
{ field: "Country", headerText: 'Country', textAlign: ej.TextAlign.Left, width: 100 }
]
$scope.onLoadClick = function () {
var data = window.employeeView;
var targetsGrid = $("#targetsGrid").data("ejGrid");
$scope.data = data;
}
});
|