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
1485
XamDateTimeEditor: ValueChanged not fired with some masks
posted

Hi,

I have a XamDateTimeEditor with this mask: 

"yyyy-mm-dd hh:mm:ss" 
When using it, the ValueChanged event is not fired after selecting a date in the calendar dropdown. It does fire if I use only "yyyy-mm-dd" as the mask, but I really needed the time in there as well.
Is there any way around this? When selecting from the calendar, the time is empty. I want to use the ValueChanged event to put 23:59:59 as the time, so for example, selecting today would display 2013-12-19 23:59:59
Thanks,
Michel 
Parents
  • 2070
    Verified Answer
    posted

    Hi Michel,

     

    Try hooking into TextChanged event instead. That should be raised when you change the date via the calendar. The reason why ValueChanged is not raised is because the value is incomplete - the user has not entered the time portion yet.

     

    Hope this helps,

    Sandip

Reply Children
No Data