[FIXED] [V0.6] TabPanel and ComboBox SelectedItem

  1. #1

    [FIXED] [V0.6] TabPanel and ComboBox SelectedItem

    Hello,

    The SelectedItem does not stay between TabPanel tab switching:

    Example.aspx:
    <%@ 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 id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <p><a href="Example.aspx">Reload</a></p>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
            <ext:ScriptManager ID="ScriptManager2" runat="server" />
            <ext:TabPanel ID="Tabs1" runat="server" ActiveTab="1" AutoPostBack="True" AutoWidth="True" DeferredRender="True" Height="400">
                <Tabs>
                    <ext:Tab ID="Tab1" runat="server" Title="Tab1" AutoHeight="True" AutoWidth="True">
                        <Content>
                            Tab 1
                        </Content>
                    </ext:Tab>
                    <ext:Tab ID="Tab2" runat="server" Title="Tab2" AutoWidth="True" Height="400">
                        <Content>
                            <ext:ComboBox ID="drpAccountType" runat="server" Editable="False" ForceSelection="True" Mode="Local" Select&#111;nfocus="True" TypeAhead="True" Width="255">
                                <SelectedItem Text="Customer" Value="Customer" />
                                <Items>
                                    <ext:ListItem Text="Customer" Value="Customer" />
                                    <ext:ListItem Text="Employee" Value="Employee" />
                                </Items>
                            </ext:ComboBox>
                        </Content>
                    </ext:Tab>
                </Tabs>
            </ext:TabPanel>
        </form>
    </body>
    </html>
    Replication step:

    1. Load page
    2. Notice the ComboBox now has "Customer" selected
    3. Click "Tab 1"
    4. Click "Tab 2"
    5. Notice the ComboBox now has nothing selected

    Fails in IE6.0 and FF3.0.

    Cheers,
    Timothy
  2. #2

    RE: [FIXED] TabPanel and ComboBox SelectedItem

    I'm fixing several bugs in the <ext:ComboBox> right now. Thanks for the additional test, I'll make sure the ComboBox works properly with the your test before committing revisions to svn.

    Geoffrey McGill
    Founder
  3. #3

    RE: [FIXED] TabPanel and ComboBox SelectedItem

    Great, let me know when you commit your changes and I'll give it a whirl :)

    Cheers,
    Timothy
  4. #4

    RE: [FIXED] TabPanel and ComboBox SelectedItem

    Hi Timothy,

    the fix in svn. Let me know if the problem still exists for you

  5. #5

    RE: [FIXED] TabPanel and ComboBox SelectedItem

    Confirmed, thanks!

Similar Threads

  1. ComboBox and selectedItem.value
    By cwolcott in forum 1.x Help
    Replies: 3
    Last Post: Feb 01, 2012, 7:48 AM
  2. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  3. combobox.selectedItem
    By gidi in forum 1.x Help
    Replies: 2
    Last Post: Jul 07, 2011, 7:42 PM
  4. Replies: 4
    Last Post: Feb 02, 2010, 4:08 PM
  5. ComboBox's SelectedItem in MVC App
    By danni in forum 1.x Help
    Replies: 4
    Last Post: Oct 02, 2009, 5:06 PM

Posting Permissions