-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed

Description
Hello i'm new to javascript, angular, ui-grid.
I'm using the UI-Grid v3.0.0-rc.22, angular v1.4.1
i have the following code in my project
$scope.uigridOptions = {
enableSorting: false,
enableRowSelection: true,
multiSelect : false,
enableRowHeaderSelection: false,
columnDefs : [
{ field: 'Address', displayName: 'Physical Input',cellTemplate: '<div class="ui-grid-cell-contents ng-binding ng-scope"> Card {{row.entity.AddrCard}} Input {{row.entity.AddrPin}}</div>', width: '30%',
cellClass: function(grid, row, col, rowRenderIndex, colRenderIndex) {
if (row.entity.Mapped == true) {return 'blue';}
}
},
to show some 'mapped' records blue with the aid of css.
but when i change the array of objects that the grid is bound to the records that are 'mapped' do not appear blue. In order to appear blue i have to scroll the item beyond the visible area of grid and when i get it back the the grid shows it blue.
I tried to call some refresh methods to force the grid to update its contents with no luck such as..
$scope.gridApi.grid.refreshCanvas();
$scope.gridApi.core.queueGridRefresh();
$scope.gridApi.core.refresh();
from the api manual i think what i need is refreshCanvas()
.
Is it a bug of ui-grid or am i doing something wrong??
Best regards to all
p.s. i have register in angular the following
var wt520rApp = angular.module('wt520r_App', [
'ui.router',
'ui.bootstrap',
'ui.grid',
'ui.grid.selection'
]);
Metadata
Metadata
Assignees
Labels
No labels