Disable call to refresh in DoOnDataListChange when in dsEdit
Issue #251
closed
If you want to monitor data changes in the underlying datalist via TPropertChangedEvent, you are running into a stack overflow when posting a record.
The Post event of a record changes the dataobject property, the property of your object fires a PropertyChangedEvent, the propertyChangedEvent triggers DoOnDataListChange, DoOnDatalistChange Calls Refresh, Refresh calls Post and.....
Comments (3)
-
repo owner -
reporter Thank you, Stefan, you are right, my property setter fired all the time
-
repo owner - changed status to closed
- Log in to comment
I can only reproduce when I have a property setter that fires property changed event regardless the value actually being changed. If I add a check for field <> value and fire the change after setting the field then it does not happen. If you have a case where it still does, then please post a project to reproduce.