Skip to content

Commit 8385929

Browse files
committed
grid watcher primary key from widget option instead attrs
1 parent 5c87ec7 commit 8385929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/igniteui-angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
});
9999

100100
function watchGridDataSource(newValue, oldValue) {
101-
var i, j, pkKey = attrs.primaryKey, existingDomRow, existingRow, grid = element.data("igGrid"),
101+
var i, j, existingDomRow, existingRow, grid = element.data("igGrid"), pkKey = grid.options.primaryKey,
102102
gridUpdating = element.data("igGridUpdating"), column, record, td, colIndex, newFormattedVal, dsRecord,
103103
ds = scope.$eval(attrs.source), diff = [];
104104
// check for a change of the data source. In this case rebind the grid

0 commit comments

Comments
 (0)