Disable ENTER key when combobox makes filtering values. [urgent]

  1. #1

    Disable ENTER key when combobox makes filtering values. [urgent]

    Good afternoon.

    I'm using ext.Net A component of the Custom Search within a RowEditor, I have a problem when I try to disable the Enter key in the Custom Serach for the user does not select a row with this key.

    <ext: ComboBox id = "cmbDescricaoProduto" runat = "server" DisplayField = "DESCRIPTION" ValueField = "DESCRIPTION"
       TypeAhead = "false" LoadingText = "Searching ..." Width = "320" PageSize = "0" HideTrigger = "true "
       ItemSelector = "tr.list-item" MinChars = "1" Mode = "Remote " QueryDelay = "1000">
    Any suggestions to solve this problem?

    Thanks.

    Att., Wander Moreno
    Last edited by geoffrey.mcgill; Feb 11, 2011 at 7:13 PM. Reason: please use [CODE] tags
  2. #2

    Solved Problem!

    Solved Problem!

    Using one javascript function to disable enter:

       var cancelEnter = function()
                {
                   return (event.keyCode != 13);
                }

    I added a tag:

    </Template>
              <listeners>
                        <BeforeSelect  Fn="cancelEnter" />                                                                                                
               </listeners>
    After the tag <template> on the source of control.

    Thanks, so much.

Similar Threads

  1. ComboBox Filtering Bug
    By amgw in forum 1.x Help
    Replies: 5
    Last Post: Nov 11, 2011, 4:57 PM
  2. Disable Enter key in Text field using MASKRE
    By raju145in in forum 1.x Help
    Replies: 0
    Last Post: Oct 03, 2011, 6:02 AM
  3. [CLOSED] How to disable Enter Key in texArea
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 08, 2011, 10:38 AM
  4. [CLOSED] Disable Enter Key in Grid
    By sharif in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 19, 2011, 6:00 PM
  5. [CLOSED] Combobox makes page with large image really slow
    By jchau in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 10, 2009, 4:06 AM

Tags for this Thread

Posting Permissions