{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5122","repository_url":"https://api.github.com/repos/angular-ui/ui-grid","labels_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5122/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5122/comments","events_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5122/events","html_url":"https://github.com/angular-ui/ui-grid/issues/5122","id":133974349,"number":5122,"title":"Pagination always shows [250,500,100]","user":{"login":"viswanathamsantosh","id":3799600,"avatar_url":"https://avatars.githubusercontent.com/u/3799600?v=3","gravatar_id":"","url":"https://api.github.com/users/viswanathamsantosh","html_url":"https://github.com/viswanathamsantosh","followers_url":"https://api.github.com/users/viswanathamsantosh/followers","following_url":"https://api.github.com/users/viswanathamsantosh/following{/other_user}","gists_url":"https://api.github.com/users/viswanathamsantosh/gists{/gist_id}","starred_url":"https://api.github.com/users/viswanathamsantosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viswanathamsantosh/subscriptions","organizations_url":"https://api.github.com/users/viswanathamsantosh/orgs","repos_url":"https://api.github.com/users/viswanathamsantosh/repos","events_url":"https://api.github.com/users/viswanathamsantosh/events{/privacy}","received_events_url":"https://api.github.com/users/viswanathamsantosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-16T12:54:55Z","updated_at":"2016-02-19T09:53:28Z","closed_at":null,"body":"```\r\n\r\nangular.module(\"myApp\",['ui.grid','ui.grid.pagination','ui.grid.selection'])\r\n.controller('GridCtrl1',['$scope','$http',function($scope,$http){\r\n  var vm=this;\r\n  vm.scope = $scope;\r\n  $scope.uiGridOptions=[];\r\n  $http.get('data/grid1.json')\r\n  .success(function(data){\r\n    vm.data=data.data;\r\n    var retval=InfiniteGrid(vm);\r\n    $scope.uiGridOptions=retval.scope.uiGridOptions;\r\n  })\r\n  .error(function(){\r\n      console.log(\"Error extracting data\");\r\n  });\r\nvm.columnDefs=[\r\n    {\r\n        displayName:\"Safety Marking\",\r\n        field:\"safetyMark\",\r\n        enableCellEdit : true,\r\n        enableFiltering : false,\r\n        enableSorting : false,\r\n        pinnedLeft : false,\r\n        type:\"number\"\r\n    }]\r\n}])\r\nfunction InfiniteGrid(opt) {\r\n  var vm = this;\r\n  vm.scope=opt.scope\r\n  vm.columnDefs=opt.columnDefs;\r\n  vm.scope.uiGridOptions = {\r\n      paginationPageSizes : [ 6, 10, 15 ],\r\n      paginationPageSize : 6,\r\n      enableSorting: true,\r\n      columnDefs: vm.columnDefs,\r\n      data:opt.data,\r\n      onRegisterApi: function(gridApi){\r\n         vm.gridApi = gridApi;\r\n      }\r\n  };\r\n  return vm;\r\n};\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/comments/186143758","html_url":"https://github.com/angular-ui/ui-grid/issues/5122#issuecomment-186143758","issue_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/5122","id":186143758,"user":{"login":"Vinodang","id":12068115,"avatar_url":"https://avatars.githubusercontent.com/u/12068115?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinodang","html_url":"https://github.com/Vinodang","followers_url":"https://api.github.com/users/Vinodang/followers","following_url":"https://api.github.com/users/Vinodang/following{/other_user}","gists_url":"https://api.github.com/users/Vinodang/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinodang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinodang/subscriptions","organizations_url":"https://api.github.com/users/Vinodang/orgs","repos_url":"https://api.github.com/users/Vinodang/repos","events_url":"https://api.github.com/users/Vinodang/events{/privacy}","received_events_url":"https://api.github.com/users/Vinodang/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T09:53:28Z","updated_at":"2016-02-19T09:53:28Z","body":"it works, pls visit https://plnkr.co/edit/1Ij0ecBEM3xZAfFYInK0?p=preview"}}