Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    62
    Vote Rating
    0
    maqjav is on a distinguished road

      0  

    Default Combobox doesn't work always

    Combobox doesn't work always


    Hello.

    I'm having some issues with the component ComboBox.
    Here is the code I am using:

    Code:
    LayoutContainer combosPanel = new LayoutContainer(new RowLayout(Orientation.HORIZONTAL));
    combosPanel.setSize(610, 22);
    
    final ComboBox<BeanModel> comboProvince = new ComboBox<BeanModel>();
    ListStore<BeanModel> storeProvinces = new ListStore<BeanModel>();  
    storeProvinces .add(provincesModel);
    
    comboProvince.setId("comboProvince");
    comboProvince.setStore(storeProvinces);
    comboProvince.setEmptyText("Province");
    comboProvince.setDisplayField("name");
    comboProvince.setSize(135, 22);
    comboProvince.setTriggerAction(TriggerAction.ALL);
    comboProvince.addSelectionChangedListener(new SelectionChangedListener<BeanModel>() {
    			
    	@Override
    	public void selectionChanged(SelectionChangedEvent<BeanModel> se) {
    		comboTowns.disable();
    	}
    });
    
    combosPanel.add(comboProvince, new RowData(-1, -1));
    The combo is showing 2 provinces, and sometimes (not always) if I try to chose one, it doesn't let me.
    It expands the list, and if I try to click on one, it doesn't select it, it doesn't collapse the list, nothing. It's like if the component is blocked and can't receive the mouse events.

    I have to write the name of the province on the comboBox and then push enter to select it.

    I was just wondering if this is something that someone else reported or it's just something that only happends to me.

    Thanks.

    I'm using Google Chrome (for give more information).

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is hard to say without having a fully working testcase. Have you checked if there are any exceptions?

    Have you also tried to reproduce this in a small stansalone testcase implementing EntryPoint? This would probably the fastest way to solve it.

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    62
    Vote Rating
    0
    maqjav is on a distinguished road

      0  

    Default


    Hello sven.

    Debbuging the application doesn't give any exception, but I should try it with my browser, maybe there are some javascript warnings or exceptions.
    The next time it will happend I will check it out and let you know.

    Thank you.

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Location
    Russia, St.Petersburg
    Posts
    3
    Vote Rating
    0
    gkislin is on a distinguished road

      0  

    Exclamation (TypeError): Cannot read property 'itemSelector' of null

    (TypeError): Cannot read property 'itemSelector' of null


    Hello.
    I have added call stack here:
    http://www.sencha.com/forum/showthre...750#post716750

Similar Threads

  1. Combobox binding doesn't work
    By pejo in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 22 Nov 2010, 7:42 AM
  2. [CLOSED] [2.0.1] Combobox in MenuItem doesn't work
    By mike07 in forum Ext GWT: Bugs (2.x)
    Replies: 3
    Last Post: 2 Feb 2010, 1:55 PM
  3. [2.1] overCls in combobox doesn't work with renderTo
    By dolittle in forum Ext 2.x: Bugs
    Replies: 6
    Last Post: 20 Apr 2009, 7:06 AM
  4. My Combobox doesn't work well.
    By mashiki in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 14 Feb 2008, 8:22 AM
  5. ComboBox onChange doesn't work?
    By gelleneu in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 16 Aug 2007, 4:31 AM

Thread Participants: 2