We have a listGrid and a DynamicForm which each have the same datasource.
DataSource ds = DataSource.get("dataSourceDS");
listGrid.setDataSource(ds);
dynamicForm.setDataSource(ds);
When a new record is created and saved from the dynamicForm to the database, the listGrid does a fetch of the data and displays it. OK.
The problem is that we want to select the newly added record in the list grid. However, we are not able to do this because we cannot select the record until the grid is loaded and the data fetched displayed.
We have tried the onDataArrived callback, but this callback executes before the data is actually rendered.
So how can we know when the listgrid renders the data so that the selectRecord(newlyAddedRecord) will work?
DataSource ds = DataSource.get("dataSourceDS");
listGrid.setDataSource(ds);
dynamicForm.setDataSource(ds);
When a new record is created and saved from the dynamicForm to the database, the listGrid does a fetch of the data and displays it. OK.
The problem is that we want to select the newly added record in the list grid. However, we are not able to do this because we cannot select the record until the grid is loaded and the data fetched displayed.
We have tried the onDataArrived callback, but this callback executes before the data is actually rendered.
So how can we know when the listgrid renders the data so that the selectRecord(newlyAddedRecord) will work?
Comment