Skip to content

Commit 5080f99

Browse files
committed
Pass the whole record values when rendering templating cells
1 parent 8bcbcb2 commit 5080f99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/igniteui.angular2.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ export class IgGridBase<Model> extends IgControlBase<Model> implements AfterCont
528528
column = element.data(this._widgetName).columnByKey(diff[i].txlog[j].key);
529529
if (column) {
530530
if (column.template) {
531-
newFormattedVal = grid._renderTemplatedCell(diff[i].txlog[j].newVal, column);
531+
newFormattedVal = grid._renderTemplatedCell(record, column);
532532
} else {
533533
newFormattedVal = grid._renderCell(diff[i].txlog[j].newVal, column, record);
534534
}
@@ -600,7 +600,7 @@ export class IgTreeGridComponent extends IgGridBase<IgTreeGrid> {
600600
column = element.data(this._widgetName).columnByKey(diff[i].txlog[j].key);
601601
if (column) {
602602
if (column.template) {
603-
newFormattedVal = grid._renderTemplatedCell(diff[i].txlog[j].newVal, column);
603+
newFormattedVal = grid._renderTemplatedCell(record, column);
604604
} else {
605605
newFormattedVal = grid._renderCell(diff[i].txlog[j].newVal, column, record);
606606
}
@@ -678,7 +678,7 @@ export class IgHierarchicalGridComponent extends IgGridBase<IgHierarchicalGrid>
678678
column = mainGrid.columnByKey(diff[i].txlog[j].key);
679679
if (column) {
680680
if (column.template) {
681-
newFormattedVal = mainGrid._renderTemplatedCell(diff[i].txlog[j].newVal, column);
681+
newFormattedVal = mainGrid._renderTemplatedCell(record, column);
682682
} else {
683683
newFormattedVal = mainGrid._renderCell(diff[i].txlog[j].newVal, column, record);
684684
}

0 commit comments

Comments
 (0)