I have the idField set but it still does not work.
<eui-datagrid #uiBeHoldsGrid [data]="data" style="height:calc(100vh - 290px); " [loading]="loading" loadMsg="Loading Please Wait"
[filterable]="true" [sorts]="[{field:'createDateFormated',order:'desc'}]" [virtualScroll]="true"
[pageNumber]="pageNumber" [pageSize]="pageSize" idField="id" selectionMode="row">
LoadData() {
this.data = [];
this.loading = true;
var zone = GqConfigService.timeZone;
this.sblBeHoldsService.getData((msg) => {
this.data = msg;
this.loading = false;
this.RowCount = this.uiBeHoldsGrid.rows.length;
setTimeout(() => {
if(!isNullOrUndefined(this.selectedRow)){
var selected = this.uiBeHoldsGrid.rows.find(x => x.id.trim() === this.selectedRow.id);
this.uiBeHoldsGrid.selectRow(selected);
this.selectedRow = null;
}
}, 100);
this.gqTabsService.ShowSpinner(false);
},
(status, statusText, error) => {
console.log("Status: " + status);
console.log("StatusText: " + statusText);
console.log("Server Error: " + error);
this.gqTabsService.ShowSpinner(false);
this.loading = false;
this.messager.ErrorAlert("Failed", "Failed to load data: " + error)
},
zone
);
};