Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ng-grid paging
Message
 
 
À
26/10/2014 02:27:52
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
Divers
Thread ID:
01609778
Message ID:
01609939
Vues:
36
The behavior I observe now has very little sense :(

As I said, I removed paging. My grid data is now currentAccount.invoices. This is how the grid is set up right now:
     $scope.gridOptions = {
              data: 'currentAccount.invoices',
              showFooter: true,
              enableColumnResize: true,
              enableColumnReordering: true,
              enableRowSelection: false,
              enablePaging: false,

              totalServerItems: 'totalServerItems',
              pagingOptions: $scope.pagingOptions,
              filterOptions: $scope.filterOptions,
              //rowTemplate: '<div style="height: 100%" ng-class="{label label-danger pull-right: row.getProperty(\'hidden\') == true}"><div ng-style="{ \'cursor\': row.cursor }" ng-repeat="col in renderedColumns" ng-class="col.colIndex()" class="ngCell {{col.cellClass}}"><div class="ngVerticalBar" ng-style="{height: rowHeight}" ng-class="{ ngVerticalBarVisible: !$last }"> </div><div ng-cell></div></div></div>',
              columnDefs: [
              {
                  field: 'invoiceNo', displayName: 'Invoice #',
                  width: 70, resizable: true, sortable: true,
                  enableCellEdit: false,
                  cellTemplate: linkCellTemplate
              },
              { field: 'descrip', displayName: 'Description', width: 200, resizable: true, sortable: true },
              { field: 'created', displayName: 'Date Created', width: 150, resizable: true, sortable: true, cellFilter: "date: 'medium'" },

              {
                  field: 'balance', displayName: 'Balance', resizable: true, sortable: true,
                  cellTemplate: balanceCellTemplate
              }]
              
          };
Attached please find the number of invoices per each account which has invoices.

This is what I see now - the *GUESTS* and *TABLES* accounts which have 28 invoices correctly show them and filtering also works. All other accounts correctly show Total Number of invoices in the footer, but grid comes blank. This happens even after re-start of the application and even when I originally start from, say, *RESRVATN* account which has 23 invoices.

So, it seems like only 2 accounts correctly show the data - the ones with the most data. Everything else refuses to work.

I don't know what am I supposed to do in this situation. I assume it's a bug in ng-grid but I don't know how to debug it. As I said, I reverted back to the original min version of this class we had.

I am using Google Chrome.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform