Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mirik123 committed Sep 29, 2015
1 parent f829b1f commit 4e8b1cb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ grid.api.odata.raise.error(response, 'failed to query $metadata');
var app = angular.module('app', ['ui.grid', 'ui.grid.expandable', 'ui.grid.odata']);
app.controller('MainCtrl', ['$scope', 'gridUtil', function ($scope, gridUtil) {
$scope.myGrid = {
expandableRowTemplate: 'ui-grid/odataExpandableRowTemplate',
enableFiltering: true,
showGridFooter: true,
showColumnFooter: true,
odata: {
metadatatype: 'xml',
datatype: 'json',
Expand All @@ -71,7 +73,12 @@ grid.api.odata.raise.error(response, 'failed to query $metadata');
dataurl: "http://services.odata.org/V4/OData/OData.svc/Products",
metadataurl: 'http://services.odata.org/V4/OData/OData.svc/$metadata',
gencolumns: true
}
},
columnDefs: [
{ field: 'Description', width: 300 },
{ field: 'ID', width: 50 },
{ field: 'Name', width: 200 }
]
};

$scope.myGrid.onRegisterApi = function (gridApi) {
Expand Down

0 comments on commit 4e8b1cb

Please sign in to comment.