Hi,

The below code used to works great in ext.net 2.x version but breaking in ext.net 4.x version. Please find the code below:

<ext:ComboBox ID="cmbCustomerSearch" runat="server" Height="32" Width="200"
DisplayField="DisplayName" ValueField="ContactID" EnableKeyEvents="true"
TypeAhead="false" HideTrigger="true" MinChars="3" EmptyText="<%$ Resources: MMResource,Search%>" ForceSelection="false"
HideLabel="true" MaskRe="/[^<>^]/">
<Store>
<ext:Store runat="server" ID="stCustomerSearch" AutoLoad="false">
<Model>
<ext:Model ID="Model5" IDProperty="ID" runat="server">
<Fields>
<ext:ModelField Name="DisplayName" />
<ext:ModelField Name="ContactID" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Listeners>
<BeforeSelect Fn="disableSelectionOnEnter">
</BeforeSelect>
</Listeners>
</ext:ComboBox>

function disableSelectionOnEnter(e) {
if (Ext.EventObject) {
if (Ext.EventObject.keyCode == null && Ext.EventObject.type == "click")
return true;
else if (Ext.EventObject.keyCode == 13) {
if (c > 0)
return true;
return false;
}
else
return true;
} else {
//if (c > 0) { return true; }
return true;
}
}

In the above code we are getting Ext.EventObject as null with ext.net 4.x version.

Could you please help me out with a solution.

Thanks in advance.