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

  1. #1

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

    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>
    Last edited by Daniil; Aug 02, 2013 at 5:52 AM. Reason: [OPEN] [#313]
  2. #2
    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?
  3. #3
    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
  4. #4
    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?
  5. #5
    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
  6. #6
    Sencha opened a bug. We created an Issue to track it.
    https://github.com/extnet/Ext.NET/issues/313
  7. #7

Similar Threads

  1. Reconfigure causing a problem
    By huzzy143 in forum 1.x Help
    Replies: 20
    Last Post: Sep 27, 2011, 6:24 PM
  2. Multiselect causing problem in Updatepanel
    By rajputamit in forum 1.x Help
    Replies: 0
    Last Post: Nov 25, 2010, 4:35 AM
  3. [CLOSED] DeferredRender causing ComboBox to render incorrectly
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 05, 2009, 5:54 PM
  4. Desktop is causing a wrong render
    By asztern in forum 1.x Help
    Replies: 6
    Last Post: Sep 12, 2009, 10:09 AM
  5. Replies: 0
    Last Post: Mar 01, 2009, 12:34 PM

Posting Permissions