Hi,
I am using paging. The datasource for the grid contains a odata data source with foreign keys.
Therefore I have added a column with a data source. This works when initially loaded.
When I edit an object and choose a value for the foreign key column then after saving the cell might be empty. There is one precondition that has to be met in order that the cell remains empty. The user must select a value for the foreign key, that is not present (for that column) in the paged list. A reason that might be is that if I use paging then the executed query for that foreign key column filters only for values that are currently visible (e.g. filter only customer ids that are displayed on the current page). This is correct, since I do not want to query for all customers.
But with this feature the issue appears. If on page 1 there exists orders for the customer C1, C2, C3 only, then if I edit an order and select C4 as customer then this cell is empty because the customer C4 was initially not loaded
Currently what works is to refresh the columns:
onActionComplete(args: ActionEventArgs) {
if(args.requestType === 'save')
{
this.grid.refreshColumns();
}
}Is this the intended behavior?