Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

ng-grid is not showing complete data #4

Open
@AgDude

Description

@AgDude

From @deveshkumar303 on June 29, 2015 15:10

Hi,

i am using below code to populate my grid using service response.

var app = angular.module('MyGridApp', ['ngGrid']);

app.controller('bodyController', ['$scope', '$http', '$domUtilityService', function ($scope, $http, $domUtilityService) {
    //debugger;
    /*
    $scope.myData = [{ name: "Moroni", age: 50 },
                     { name: "Tiancum", age: 43 },
                     { name: "Jacob", age: 27 },
                     { name: "Nephi", age: 29 },
                     { name: "Enos", age: 34 }];
    $scope.gridOptions = { 
        data: 'myData'
    };
    */

    $scope.GridDetails = [];


    $http.get('http://localhost:342345/api/FlexiData/GetData')
    .success(function (Griddata, status, headers, config) {
        //debugger;
        $scope.GridDetails = angular.fromJson(Griddata);

    })
    .error(function (data, status, headers, config) {
        //debugger;
        alert("error");
    });

    $scope.gridOptions = {
        data: 'GridDetails'
    };

    $domUtilityService.RebuildGrid;

}]);

My grid is only showing 6 rows only but in actual 'Griddata' has 500+ rows. I have included following JS files in my code.
http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js
https://cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid-flexible-height.min.js
https://cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid.css
https://cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid-layout.min.js

Please help me, where i am doing mistake.

Copied from original issue: angular-ui/ui-grid#3886

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions