Hi,
This bug is simple to see and easy to see why in the code… If look at this TcxScheduler.GetPropertyValue and TcxScheduler.SetPropertyValue you will see that it never takes the GanttView into account. Consequently you cannot persist the scheduler view when it is the Gantt.
cheers
- your friendly neighbourhood Spiderman (bug hunter)
The scheduler's ViewGantt.Active property value is not persisted with the StoreTo~/RestoreFrom~ methods
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
We have changed the StoreTo~/RestoreFrom~ mechanism so that now the ViewGantt.Active property is also involved. However, I should mention that the previous behavior was also correct, maybe even more correct. The point is that in our StoreTo~ routines, we store only those properties which can be customized by an end-user by default. If you give your user the capability to customize certain additional properties, you are responsible for saving them. We decided to change the current behavior only because for now, we do not have Scheduler events that can help you store/restore additional custom properties (we have such events for many other controls; e.g., TcxGrid). I hope, we will implement these events with future versions of our controls in the context of the Implement OnGetStoredProperties, OnGetStoredPropertyValue, and OnSetStoredPropertyValue events to store custom properties ticket.
Other Answers
Hello Randall,
I have tried to reproduce the problem you described, but failed. Attached is a small sample project, which seems to work fine at our end.
Could you please provide me with step-by-step instructions on how to reproduce your problem and I will try to find an acceptable solution for you.
Thanks,
Valdemar
Hi, I have the same problem.
In the attached application click on buttons 1 - 2 - 3 - 4. After these steps Day diagram is displayed, but after restore Gantt diagram should be displayed.
If you store Day diagram, click on Gantt diagram and then on Restore button, then Day diagram is restored as expected.
Problem is in TcxScheduler.GetPropertyValue and TcxScheduler.SetPropertyValue mentioned above.
My version is 13.2.4. dxBuildNumber: Cardinal = 20130204;
Is this fixed in newer version?
Hello Eduard,
Thank you for your sample project. I have reproduced the described behavior with VCL 14.2.2 and forwarded this ticket to our developers for research.