Search Posts

Category: ui-grid

ui-grid not showing data angularjs

Can someone please help me. I want to implement data display using ui-grid. But the grid is not displaying data just showing blank yet when i use table with <tr ng-repeat=”transaction in savingaccountdetails.transactions> data is displayed. I want to use ui-grid because of the ability to have fixed header while scrolling for large data but its so hard to make table header fixed, most times columns don’t align. i tried most cases but not working […]

enableSelection and uiGridConstants

I’m trying to get rows selectable only with a certain $treeLevel. The console returned a ReferenceError: uiGridConstants is not defined. I have to admit that I don’t fully understand what uiGridConstants stands for. Here is my code: onRegisterApi: function (gridApi) { this.gridApiBatches = gridApi; console.info(gridApi); gridApi.grid.options.enableSelection = function (row) { if (row.entity.$treeLevel != 3) { return false; } else { return true; } }; gridApi.core.notifyDataChange(uiGridConstants.dataChange.OPTIONS); Source: AngularJS