TWebDataGrid issues

Hi,
I've noticed an issue with TWebDataGrid when using CellByName. If a column filter is active, CellByName still retrieves data from the original, unfiltered set of data. This causes a mismatch between what's displayed in the grid and the data accessed in code.

This is how I'm trying to use CellByName:

procedure TForm1.WebDataGrid1CellFocusedEvent(Event: TJSCellFocusedEvent);
begin
// FOR DEMO PURPOSES
console.log(WebDataGrid1.CellByName[event.RowIndex, 'MyColumn']);
end;

I also noticed that the filter options popup can be a bit stubborn at times and won't close when losing focus.

Thanks for reporting. We'll investigate.

1 Like

The CellByName currently retrieves the cell data based on the RowID instead of the DisplayedRowIndex. If you use grid.Cells, you can use the row index.

For the filtering issue, we have seen the issue also in the AgGrid demo

so, it looks like an AgGrid issue. We're going to report this.

1 Like