Jun 07, 2011, 7:33 PM
[CLOSED] press the ENTER key
I found a solution that solved my problem, thanks.
But I have a question about the button.
Is there any way to press the ENTER key to perform the click of a button specific?
Was using the following function for asp button
But I can run the button click anywhere on the page you need not only be fired in the combo.
But I have a question about the button.
Is there any way to press the ENTER key to perform the click of a button specific?
Was using the following function for asp button
But I can run the button click anywhere on the page you need not only be fired in the combo.
<script type="text/javascript">
function TrataEnter() {
if (event.keyCode == 13) {
document.getElementById("btnLogin").click();
}
}
</script>
<ext:ComboBox ID="cmbAmbDados" runat="server" StoreID="StorecmbAmbDados" DisplayField="Text"
FieldLabel="Ambiente" ValueField="Value" Mode="Local" Width="255" IndicatorTip="Ambiente de Dados"
LabelAlign="Right">
<Template runat="server" Visible="False" ID="ctl265" EnableViewState="False">
</Template>
<Listeners>
<KeyDown Fn="TrataEnter" />
</Listeners>
</ext:ComboBox>
Last edited by Daniil; Jun 07, 2011 at 10:52 PM.
Reason: [CLOSED]