Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
ValueChanged event not raised in DateTimeEditor.
posted

Hi,

I'm having a problem with the DateTimeEditor. The control by default have the Nullable property 'True'. When I set the Value property to Null, the DateTime property change to its MinDate value. If I sets the MinDate to a gratter value that today and selects the same date the ValueChanged event is not raised.

For some reason the control don't realize the value changed.

Sample project:

  1. The first DateTimeEditor MinDate is set to yesterday.
  2. The second DateTimeEditor MinDate is set to tomorroy.
  3. If you selects the same date, the first editor raises the ValueChange event. The second one don't. 

Please help.

Thanks.

DateTimeEditorSample.zip
Parents
No Data
Reply
  • 37774
    posted

     I created a sample project based on what you said and the ValueChanged event fired for both editors.

     Editor 1:

        Value: Null

        MinDate: 5/20/2008

    Editor 2:

        Value Null:

        MinDate: 5/22/2008

    So I run the application and nothing is in the editors.  When I drop-down the calendar and select the MinDate on either of these editors, the ValueChanged event is correctly being fired and the value is being set to the minimum date.  It is possible that there was an issue fixed related to this in the latest hotfix; what version are you running?

    -Matt 

Children