Hi,
I have a ListGrid and a DynamicForm, bound to the same DataSource.
I have them configured so that when a record is selected in the ListGrid,
it's edited in the form.
If I am not mistaken, when the form is saved, the following things happen with the ListGrid (among other things):
- The contents are upgraded with the updated data.
- The configured Data
ArrivedHandlers are _not_ called.
- The selection is lost.
Questions:
1. Is this really how it works? (I am asking because there are a lot of other other things happening in the background, so I might have mixed up something)
2. Can I configure it so that the dataArriveHandlers are also called on updates?
3. If not, then how am I supposed to react to the changes on the ListGrid level? (The data is automatically upgraded, which is fine, but might need to do other things, too.) Is there a hook for this? (Now I am using the return callback of the form save, but this is not nice, since the grid and the form should not even have to know about each other existence; the DataSource itself should be a sufficient link.)
4. Can I configure the ListGrid to retain the selection, and not to drop in on data changes? (Right now, I am restoring in manually.)
Thank you for your help!
I have a ListGrid and a DynamicForm, bound to the same DataSource.
I have them configured so that when a record is selected in the ListGrid,
it's edited in the form.
If I am not mistaken, when the form is saved, the following things happen with the ListGrid (among other things):
- The contents are upgraded with the updated data.
- The configured Data
ArrivedHandlers are _not_ called.
- The selection is lost.
Questions:
1. Is this really how it works? (I am asking because there are a lot of other other things happening in the background, so I might have mixed up something)
2. Can I configure it so that the dataArriveHandlers are also called on updates?
3. If not, then how am I supposed to react to the changes on the ListGrid level? (The data is automatically upgraded, which is fine, but might need to do other things, too.) Is there a hook for this? (Now I am using the return callback of the form save, but this is not nice, since the grid and the form should not even have to know about each other existence; the DataSource itself should be a sufficient link.)
4. Can I configure the ListGrid to retain the selection, and not to drop in on data changes? (Right now, I am restoring in manually.)
Thank you for your help!
Comment