Jan 27, 2010, 10:43 AM
[CLOSED] How to fire the event "OnDirectChange" when the enter key is pressed?
Hi,
I am using the event OnDirectChange to call the method "FilterCodeField_Change", it works fine when I press the tab key to go to other field after the field is changed, but when I press the enter key it does not work.
Is it there any way to fire this event when the enter key is pressed?
I am using the event OnDirectChange to call the method "FilterCodeField_Change", it works fine when I press the tab key to go to other field after the field is changed, but when I press the enter key it does not work.
Is it there any way to fire this event when the enter key is pressed?
protected void FilterCodeField_Change(object sender, DirectEventArgs e)
{
string code = this.FilterCodeField.Text;
string name = this.FilterNameField.Text;
}
<ext:FormLayout ID="FormLayout5" runat="server" LabelAlign="Top">
<Anchors>
<ext:Anchor>
<ext:TextField
ID="FilterNameField"
Width="240px"
runat="server"
FieldLabel="Name"
OnDirectChange="FilterCodeField_Change"
/>
</ext:Anchor>
</Anchors>
</ext:FormLayout>