Bug Report CB66449
Visible to All Users

DateEdit EditValue doesn't change if you do not leave the control and you click on a BarButtonItem

created 18 years ago

If you have a DateEdit control and you fill in a date, then change something like the month, and without leaving the control or hitting tab, you click on a barbutton, the EditValue of the dateedit does not change, but the text value does. This is for an unbound DateEdit.
Steps to Reproduce:
In the sample project, fill in a date and click on the simple button. It will first display the EditValue and then the Text properties. They will both be correct. Now using the keyboard change the month and immediately click on the barbutton.
Actual Results:
It will show the wrong editvalue but a correct text value.
Expected Results:
It should show the correct editvalue.

Comments (1)
DevExpress Support Team 18 years ago

    Hello Aaron,
    The editor remains focused and its value isn't validated or saved. The following Knowledge Base article provides a solution to your task:
    A data-bound editor's value is not saved when data is posted to a persistent database
    Thank you,
    Nick

    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.