why ComboBox can‘t lost focus

  1. #1
    I have one TextField id='TF_name'
    and one ComboBox id='CB_type'

    when ComboBox is focus , by javascript can set TextField focus
    but ComboBox can't Blur

    when ComboBox is focus,press ENTER,TextField is focus,but ComboBox can't Blur

    only can by mouse


    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="测试_Default2" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" 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></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:ComboBox ID="cb_type" runat="server" FieldLabel="type" LabelAlign="Right" LabelWidth="60"
            Padding="10" ValueField="dwmc" DisplayField="dwmc" IndicatorText="*" IndicatorCls="xingred"
            TabIndex="0">
            <Listeners>
                <SpecialKey Handler="if(e.getCharCode()==e.ENTER){Ext.getCmp('tf_name').focus();}" />
                <Focus Handler="function(e){e.expand();}" />
                <Blur Handler="alert('lost focus')" />
            </Listeners>
        </ext:ComboBox>
        <ext:TextField ID="tf_name" runat="server" FieldLabel="name" LabelAlign="Right" LabelWidth="60"
            Padding="10" IndicatorText="*" IndicatorCls="xingred" TabIndex="4">        
        </ext:TextField>
        </form>
    </body>
    </html>
  2. #2
    Does anyone help me, thank you
  3. #3
    is it bug?
  4. #4
    <SpecialKey Handler="if(e.getCharCode()==e.ENTER){Ext.getCmp('tf_name').focus();Ext.getCmp('cb_type').triggerBlur();}"  delay="100"/>
    i find answer
    Ext.getCmp('cb_type').triggerBlur();
    delay="100"

Similar Threads

  1. Replies: 1
    Last Post: Dec 01, 2011, 11:34 AM
  2. How to get row focus/selection lost event?
    By reezvi in forum 1.x Help
    Replies: 10
    Last Post: Jul 31, 2011, 8:41 PM
  3. Replies: 4
    Last Post: Jul 01, 2011, 5:05 PM
  4. [CLOSED] Filter focus lost after grid refresh
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 15, 2010, 9:36 AM
  5. Data in control not stored when focus lost
    By hansweber2 in forum Bugs
    Replies: 1
    Last Post: Jul 07, 2009, 9:12 AM

Posting Permissions