PDA

View Full Version : [OPEN] [#313] Using ComboBox with SelectOnFocus and SelectOnTab is causing a deadlock(Webkit Browsers)



blueworld
Jul 30, 2013, 3:00 PM
Hi,

If I use a ComboBox in a FormPanel where the next Item is another ComboBox, its causing something like a deadlock.

I dont know if this is a bug or If you cant use these both properties together set at true.

Please see my demo code, click into the first ComboBox, remove the text, Select "Item 1" or "Item 2" by using keypad up/down and press tab



<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<script runat="server">

</script>

<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:FormPanel runat="server">
<Items>
<ext:FieldSet ID="FieldSet3" runat="server"
Flex="1"
Title="Details"
Layout="AnchorLayout"
DefaultAnchor="100%">

<Defaults>
<ext:Parameter Name="HideEmptyLabel" Value="false" Mode="Raw" />
</Defaults>

<Items>
<ext:ComboBox ID="ComboBox1" runat="server" Editable="true" TypeAhead="true" QueryMode="Local"
SelectOnFocus="true" DisplayField="Name"
ForceSelection="true" ValueField="Name" AnchorHorizontal="100%"
FieldLabel="ComboBox1" AllowBlank="true" AutoDataBind="true" TabIndex="16" SelectOnTab="True">
<Items>
<ext:ListItem Text="Item 1" Value="Item 1"></ext:ListItem>
<ext:ListItem Text="Item 2" Value="Item 2"></ext:ListItem>
</Items>
<SelectedItems>
<ext:ListItem Text="Item 1" Value="Item 1"></ext:ListItem>
</SelectedItems>
</ext:ComboBox>
<ext:ComboBox ID="ComboBox2" runat="server" Editable="true" TypeAhead="true" QueryMode="Local"
SelectOnFocus="true" DisplayField="Name"
ForceSelection="true" ValueField="Name" AnchorHorizontal="100%"
FieldLabel="ComboBox2" AllowBlank="true" AutoDataBind="true" TabIndex="17" SelectOnTab="True">
<Items>
<ext:ListItem Text="Item 1" Value="Item 1"></ext:ListItem>
<ext:ListItem Text="Item 2" Value="Item 2"></ext:ListItem>
</Items>
<SelectedItems>
<ext:ListItem Text="Item 1" Value="Item 1"></ext:ListItem>
</SelectedItems>
</ext:ComboBox>
<ext:TextField ID="TextField1" runat="server" FieldLabel="Text" />
</Items>
</ext:FieldSet>
</Items>
</ext:FormPanel>
</form>
</body>
</html>

Daniil
Jul 30, 2013, 3:33 PM
Hi @blueworld,

Seems nothing criminal happens when I follow the steps with the test case launched in FireFox with the Ext.NET trunk.

What is the the browser and Ext.NET you are testing with?

blueworld
Jul 30, 2013, 3:46 PM
Hi Daniil you are right, with FireFox it does work fine, and IE too.

But it does not work with Chrome and Safari, I am using latest Ext.Net trunk

Baidaly
Jul 31, 2013, 1:23 AM
Hello!


If I use a ComboBox in a FormPanel where the next Item is another ComboBox, its causing something like a deadlock.

Sorry, what do mean by a deadlock? I've tried your sample with Chrome and latest trunk and it works fine. Console's log is clear, no spikes and no error on the screen. How can we understand that we have a deadlock?

Daniil
Jul 31, 2013, 5:13 AM
I think I reproduced that deadlock in Chrome and Safari. A browser starts to select the text in the two ComboBoxes in rotation.

Reproduced with pure ExtJS and reported to Sencha.
http://www.sencha.com/forum/showthread.php?268971

Daniil
Aug 02, 2013, 5:52 AM
Sencha opened a bug. We created an Issue to track it.
https://github.com/extnet/Ext.NET/issues/313

Daniil
Jan 13, 2014, 3:54 AM
Could you, please, try this fix?
http://forums.ext.net/showthread.php?27771&p=123634&viewfull=1#post123634