Combobox loses its list of items

  1. #1

    Combobox loses its list of items

    I have a combobox with a store defined insie the combo markup. When the page loads I call a special routine to populate the store's datasource and bind it. Sure enough, when the page loads I get results.

    Also on the page is a gridpanel with a store and a linqdatasource. This datasource uses the selected value from the combobox to populate the grid.

    If the combobox is outside the gridpanel everything works as expected. If the combobox is defined in the gridpanel's top toolbar it does not.

    Making a selection in the combobox refreshes teh grid ok but the combobox then loses all it's items except for the selection that was made.

    So inside the grid panel the combobox loses its items, outside the panel it does not. The same call to reload the grid's store is made both times.
     <Listeners>
          <Select Handler="#{stFolders}.reload();" />
      </Listeners>
    All I want to do is load the combobox once and have it persist.

    <ext:ComboBox ID="MyUsers" 
                                    runat="server"                                 
                                    DisplayField="DisplayName" 
                                    ValueField="UserID"
                                    LoadingText="Searching..." 
                                    Width="200"
                                    Mode="Local"
                                    Editable="true"
                                    TypeAhead="true" 
                                    ForceSelection="true"
                                    EmptyText="Select a user..."
                                    Resizable="true"
                                    SelectOnFocus="true">
                                    <Store>
                                        <ext:Store ID="stMyUsers" runat="server" AutoLoad="true">
                                            <Reader>
                                                <ext:JsonReader IDProperty="UserID">
                                                    <Fields>
                                                        <ext:RecordField Name="UserID" Type="Int" />
                                                        <ext:RecordField Name="DisplayName" />
                                                    </Fields>
                                                </ext:JsonReader>
                                            </Reader>
                                        </ext:Store>
                                    </Store>
                                    <Listeners>
                                        <Select Handler="#{stFolders}.reload();" />
                                    </Listeners>
                                </ext:ComboBox>
  2. #2
    I can add more to this issues.

    If I wrap the grid in a panel and move the toolbar into the top panel, everything works.

    Page
    Panel
    GridPanel

    Put the combobox in the page and it works
    Put it in the Panel and still works
    Put it in the GridPanel and it loses its items when the grid's store.reload() is called.

Similar Threads

  1. Replies: 0
    Last Post: Jun 08, 2012, 11:49 AM
  2. combobox list items not comming in left align
    By Nagaraju in forum 1.x Help
    Replies: 3
    Last Post: Dec 15, 2011, 3:27 PM
  3. Replies: 5
    Last Post: Sep 08, 2011, 5:57 AM
  4. [CLOSED] Clear combobox list items in the code behind
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 24, 2011, 3:17 PM
  5. Combobox List Items Class
    By Tbaseflug in forum 1.x Help
    Replies: 6
    Last Post: Dec 10, 2010, 7:26 AM

Posting Permissions