Jun 02, 2015, 7:19 AM
[CLOSED] how to avoid textfield autopostback?
a textfield and a button , when input some words in textfield, click "enter" key, then trigger the button's click event,
but when click the "enter" key, the page is post back to the server , how to avoid it?
but when click the "enter" key, the page is post back to the server , how to avoid it?
<ext:TextField runat="server" ID="tfProj" FieldLabel="project's name" >
<Listeners>
<SpecialKey Handler="
if(e.getKey()==13){
App.storeProj.reload();
}
">
</SpecialKey>
</Listeners>
</ext:TextField>
<ext:Button runat="server" Text="search" ID="btnSearch" Icon="Find">
<Listeners>
<Click Handler="
App.storeProj.reload();
"></Click>
</Listeners>
</ext:Button>
<ext:GridPanel runat="server" Title="xxx">
<View>
<ext:GridView runat="server" EmptyText="no data" />
</View>
<Store>
<ext:Store runat="server" ID="storeProj" OnReadData="LoadProj" >
...
Last edited by Daniil; Jun 08, 2015 at 10:10 AM.
Reason: [CLOSED]