pull/104/head
cagataycivici 2019-10-22 09:12:06 +03:00
parent ff70ffe1fc
commit 418a53af41
1 changed files with 5 additions and 2 deletions

View File

@ -836,8 +836,11 @@ export default {
return false; return false;
}, },
isRowGroupExpanded(rowData) { isRowGroupExpanded(rowData) {
let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy); if (this.expandableRowGroups && this.expandedRowGroups) {
return this.expandableRowGroups && this.expandedRowGroups && this.expandedRowGroups.indexOf(groupFieldValue) > -1; let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
}
return false;
}, },
getRowKey(rowData, index) { getRowKey(rowData, index) {
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey): index; return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey): index;