Bug Report B194518
Visible to All Users

The scheduler's ViewGantt.Active property value is not persisted with the StoreTo~/RestoreFrom~ methods  

created 14 years ago

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)

Answers approved by DevExpress Support

created 10 years ago

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.

    Comments (1)
    DevExpress Support Team 10 years ago

      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

      created 14 years ago

      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

        Comments (2)

          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?

          DevExpress Support Team 10 years ago

            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.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.