I am using the ListGrid filter row and often specify an optionDataSource that will display the filter options in a drop-down from a view in the database. In some cases, I know that the filter data has changed in the database but it will not be reflected in the filter drop-down unless the grid is completely re-built.
Is there a way to refresh the data in the filter drop-down? I have tried the following:
Thanks.
v12.1p_2020-04-23 (2020-04-23)
Is there a way to refresh the data in the filter drop-down? I have tried the following:
Code:
// Invalidate filter drop downs grid.getFields().forEach((value: Isc.ListGridField, index: number, array: Isc.ListGridField[]): void => { if (value.optionDataSource) { isc.DataSource.getDataSource(value.optionDataSource).invalidateCache(); // Doesn't work } });
v12.1p_2020-04-23 (2020-04-23)
Comment