In my Grid, I need to diosplay different columns depending on the data (If the rows are all from the same subtype, I need to have more columns).
For data loading, I use a DataManager with a custom adaptor that overwrites the processResponse method and updates the columns according to the loaded data.
class ProductsAdaptor extends WebApiAdaptor{
processResponse(data: DataResult) {
//update columns
return data;
}
}
Now, after the column update, the data is loaded again, which, in turn, triggers a column update and so on in a vicious circle.
Is there a way to brak the circle or one to achieve the goal to adapt the columns to the data in another way?