PDA

View Full Version : [CLOSED] How to detect datefield changed



jchau
Sep 26, 2013, 8:09 PM
I have a date field on a form. I want to detect when datefield value changed. There's a change event but that's fired on every key press, even if the date is not valid. There's also a select event that's fired when they use the date picker. But I am looking for an event that gets fired after the value has changed and is valid.

Daniil
Sep 27, 2013, 8:50 AM
Hi @jchau,

It looks there is no such an event.

What about the following?

<ext:DateField runat="server">
<Listeners>
<Change Handler="if (this.isValid()) { console.log('change'); }" />
</Listeners>
</ext:DateField>