[CLOSED] Problem with Tab Key press in Text Field

  1. #1

    [CLOSED] Problem with Tab Key press in Text Field

    Hi,

    I have 2 controls one is Text Field and the Other one is Trigger Field. When i press Tab key from Text Field Control it not gets Focus to Trigger Field Control, the focus goes to address bar.

    In the Code behind i set Focus to the Control using txt_order_no.Focus(true) [ if this is not mentioned in the code behind everything works fine ]

    Kindly help me out of this :confused::confused::confused:

    <ext:TextFieldID="txt_order_no"AllowBlank="false"runat="server"Width="65px"
    MaxLength="10"TabIndex="0"Cls="edit-form-manitatory">
    </ext:TextField>
    </td>
    <tdstyle="padding-left: 2px; padding-top: 2px;">
    <ext:TriggerFieldID="txt_sub_order_no"AllowBlank="false"runat="server"Width="45px"
    MaxLength="2"Cls="edit-form-manitatory">
    <Triggers>
    <ext:FieldTriggerIcon="Search"/>
    </Triggers>
    <AjaxEvents>
    <TriggerClickOnEvent="OpenOrderPopup">
    </TriggerClick>
    </AjaxEvents>
    <AjaxEvents>
    <BlurOnEvent="UpdateSupplier"ShowWarningOnFailure="false"Timeout="120000">
    </Blur>
    </AjaxEvents>
    </ext:TriggerField>
    Last edited by geoffrey.mcgill; Sep 24, 2010 at 5:15 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I edited your post wrapping the code sample in [CODE] tags.
    Please use it in your future post.

    Also when you have a chance please read and follow these recommendations.
    Forum Guidelines For Posting New Topics

    It would really save our and your time.
  3. #3
    Please post a code sample like the following one.
    With this one I was unable to reproduce the issue.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Coolite 0.8.X Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ScriptManager runat="server" />
        <ext:TextField runat="server" />
        <ext:TriggerField runat="server">
            <Triggers>
                <ext:FieldTrigger Icon="Search" />
            </Triggers>
            <Listeners>
                <TriggerClick Handler="alert('Hello from TriggerClick')" />
                <Blur Handler="alert('Hello from Blur')" />
            </Listeners>
        </ext:TriggerField>
        </form>
    </body>
    </html>
  4. #4
    Hi,

    Please use TabIndex property
    <ext:TextField runat="server" TabIndex="1" />
    <ext:TriggerField runat="server" TabIndex="2" />

Similar Threads

  1. Replies: 0
    Last Post: Dec 28, 2011, 9:30 AM
  2. [CLOSED] add text field to hboxlayout
    By T3rryChan in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Aug 25, 2011, 12:55 PM
  3. [CLOSED] EnableViewState problem for a Text Field Control
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 03, 2011, 12:40 PM
  4. find text on key press in multiselect.
    By prashant.arora in forum 1.x Help
    Replies: 0
    Last Post: Aug 06, 2010, 7:16 AM
  5. Problem with Press next button in pagingtoolbar
    By ranganath in forum 1.x Help
    Replies: 2
    Last Post: Dec 05, 2009, 1:30 AM

Posting Permissions