Mar 28, 2012, 10:19 PM
[CLOSED] Change Listener has different behavior in version 2.x than in 1.x
I have two projects, one with Ext.NET 1.x and one with 2.x.
I run the following code in both the Ext.NET 1.x and the 2.x project:
In 2.x, the change event fires every single time a key is pressed.
On a related note, I?ve also noticed that
Maybe I?m using it incorrectly, or there?s a change in 2.x that isn?t mentioned in the change log. Please let me know.
Thanks!
I run the following code in both the Ext.NET 1.x and the 2.x project:
<ext:TextField
ID="txtUsername"
runat="server"
FieldLabel="Username"
EmptyText="Enter your username"
AnchorHorizontal="100%">
<Listeners>
<Change Handler="console.log('changed');" />
</Listeners>
</ext:TextField>
In 1.x, the change event fires only when you lose focus (on blur) and there has been a text change ? This works as expected.In 2.x, the change event fires every single time a key is pressed.
On a related note, I?ve also noticed that
<SpecialKey Handler="alert('I am special');? />
Fires only in 1.x, and it does not fire in 2.x.Maybe I?m using it incorrectly, or there?s a change in 2.x that isn?t mentioned in the change log. Please let me know.
Thanks!
Last edited by Daniil; Mar 29, 2012 at 2:51 PM.
Reason: [CLOSED]