<div id="Grid" ej-grid
e-datasource="data" e-columns="columns" e-childgrid="child"
e-pagesettings-pagesize="8" e-allowpaging="true">
</div>
<script type="text/javascript">
angular.module('listCtrl', ['ejangular'])
.controller('PhoneListCtrl', function ($scope) {
. . . . .
$scope.child = {
dataSource: childobj,
queryString: "EmployeeID",
columns: [
{ field: "ChildID", headerText: "Child ID", textAlign: "right", width: 100 },
{ field: "LastName", headerText: "Last Name", textAlign: "left", width: 100 },
{ field: "FirstName", headerText: "First Name", textAlign: "left", width: 100 },
{ field: "City", headerText: "City", textAlign: "left", width: 100 },
{ field: "Country", headerText: "Country", textAlign: "left", width: 100 }
]
};
});
</script>
|