Bug Report T311884
Visible to All Users

EnterMoveNextControl and DateTimePropertyEditor do not work

created 9 years ago

Hello,
on version 15.1.7 the entermovenextcontrol on datetimepropertyeditor works fine, when i upgrade to version 15.1.8 stop working.

Show previous comments (3)

    Here the code for Editor

    [PropertyEditorAttribute(typeof(DateTime), "DateEditor", false)]
       public class DatePropertyEditor : DXPropertyEditor
       {

    protected override object CreateControlCore()
           {
               DateTimeEdit editor = new DateTimeEdit();

    return editor;
           }
            protected override void SetupRepositoryItem(RepositoryItem item)
           {
               base.SetupRepositoryItem(item);

    RepositoryItemDateTimeEdit dateTimeEdit = (RepositoryItemDateTimeEdit)item;

    dateTimeEdit.Init(EditMask, DisplayFormat);

    dateTimeEdit.NullDate = AllowNull ? null : (object)DateTime.MinValue;
               dateTimeEdit.AllowNullInput = AllowNull ? DefaultBoolean.True : DefaultBoolean.Default;

    dateTimeEdit.ShowToday = true;
               dateTimeEdit.ShowClear = true;
               dateTimeEdit.CalendarView = CalendarView.Vista;
               dateTimeEdit.VistaCalendarViewStyle = VistaCalendarViewStyle.All;

    }
           public override bool CanFormatPropertyValue
           {
               get { return true; }
           }
           protected override RepositoryItem CreateRepositoryItem()
           {

    return new RepositoryItemDateTimeEdit();
           }
           public DatePropertyEditor(Type objectType, IModelMemberViewItem model) : base(objectType, model) { }
           public new DateEdit Control
           {
               get { return (DateEdit)base.Control; }
           }
       }

    Dennis Garavsky (DevExpress) 9 years ago

      Thanks for your update,  Tzanis. We will try to replicate this behavior with your custom editor and get back to you.

      DevExpress Support Team 9 years ago

        Hello Tzanis,

        Thank you for the sample code. I have reproduced this issue and forwarded your ticket to our R&D team. We will notify you of our results shortly.

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 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.

        Additional information:

        With this fix, we have introduced a new DateTimeEdit.CanShowPopupOnEnter property to control the showing popup window behavior.

        When this property is set to true, the popup window will be shown on the Enter key press in edit mode. The default value of this property is true.

        To resolve the problem, add the following code to your ViewItem.ControlCreated event handler:

        C#
        void propertyEditor_ControlCreated(object sender, EventArgs e) { ... DXPropertyEditor propertyEditor = (DXPropertyEditor)sender; DateTimeEdit dateTimeEdit = propertyEditor.Control as DateTimeEdit; if (dateTimeEdit != null) { dateTimeEdit.CanShowPopupOnEnter = false; } }
          Comments (3)

            Thank you very much

              Hello,
              From where can i download the hotfix v2015 vol 1.9?

              DevExpress Support Team 9 years ago

                Hello Tzanis.
                It is not available yet. You will be automatically notified when a hot fix fro this issue will be ready.

                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.