div ng-app="employeeView">
<div ng-controller="GridCtrl">
<div ej-grid id="Grid" e-width="500px" e-datasource="data" e-allowsorting="true" e-columns= "columns" e-allowpaging="true" e-toolbarsettings-showtoolbar="true" e-toolbarsettings-toolbaritems="tools" e-editsettings-allowdeleting=' true' e-editsettings-allowediting='true' e-editsettings-allowadding='true' e-editsettings-showdeleteconfirmdialog=' true' e-allowselection ="false">
</div>
</div>
</div>
------------------------------------------------------------------------------
$scope.tools = ["add", "edit", "delete", "update", "cancel"];
$scope.page = 2;
$scope.data = obj;
$scope.columns = [
{ field: "EmployeeID", headerText: 'Employee ID', isPrimaryKey: true, textAlign: ej.TextAlign.Right, width: 115 },
{ field: "FirstName", headerText: 'First Name', textAlign: ej.TextAlign.Left, width: 150, },
{ field: "LastName", headerText: 'Last Name', textAlign: ej.TextAlign.Right, width: 115 },
{ field: "Title", headerText: 'Title', textAlign: ej.TextAlign.Right, width: 115 },
{ field: "City", headerText: 'City', textAlign: ej.TextAlign.Right, width: 115 },
{ field: "Country", headerText: 'Country', textAlign: ej.TextAlign.Right, width: 115, editType: ej.Grid.EditingType.Dropdown },
]
});
|