1. #1
    Ext User
    Join Date
    Aug 2009
    Posts
    78
    Vote Rating
    0
    isit.gd is on a distinguished road

      0  

    Default Combobox not able to select item

    Combobox not able to select item


    Hi

    Not used Extjs for a while and i've gotten a little rusty!

    I have the following combobox:

    Code:
    NameSpace.DirectCombo = Ext.extend(Ext.form.ComboBox, {
        displayField: 'Name',
        valueField: 'Id',
        triggerAction: 'all',
        queryAction: 'Name',
        forceSelection: true,
        mode: 'remote',
        initComponent: function () {
            this.store = new Ext.data.DirectStore(Ext.apply({
                api: this.api,
                root: 'data',
                fields: this.fields || ['Name', 'Id']
            }, this.storeConfig));
    
            NameSpace.DirectCombo.superclass.initComponent.call(this);
        }
    });
    
    NameSpace.LocationCombo = Ext.extend(NameSpace.DirectCombo, {
        storeConfig: {
            id: 'location-combo-store'
        },
        initComponent: function () {
            Ext.apply(this.storeConfig, {
                directFn: Location.AllHasLineupList,
                baseParams: { Id: selectedNodeId }
            });
            NameSpace.LocationCombo.superclass.initComponent.call(this);
        }
    });
    Which loads and does the whole typeahead thing fine.

    But when i try to select an item in the suggestions, it wont select it!

    What am i doing wrong here?

  2. #2
    Ext User
    Join Date
    Aug 2009
    Posts
    78
    Vote Rating
    0
    isit.gd is on a distinguished road

      0  

    Default


    i bet this is super simples to some extjs boffs out there!

  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    78
    Vote Rating
    0
    isit.gd is on a distinguished road

      0  

    Default


    seriously ?

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Can't see anything wrong with that code.

    Which Ext version? (IIRC there was a bug in one of the Ext 3 RCs that did this).

  5. #5
    Ext User
    Join Date
    Aug 2009
    Posts
    78
    Vote Rating
    0
    isit.gd is on a distinguished road

      0  

    Default


    Latest release downloaded from the main site.

    I suspect you're right as I have very similar code elsewhere that works...

    I'll try and find an older version. If a member of the sencha team could confirm whether or not this is correct... that'd be great...

  6. #6
    Ext User Sheerahar's Avatar
    Join Date
    Jan 2011
    Location
    USA
    Posts
    1
    Vote Rating
    0
    Sheerahar is on a distinguished road

      0  

    Default Hello there

    Hello there


    Hello there great to meet you. Really happy to come here[url=http://www.blurty.com/users/earwars]!

Similar Threads

  1. How to manually select an item (combobox)
    By Reghin in forum Ext GWT: Discussion
    Replies: 10
    Last Post: 16 Jul 2013, 8:39 AM
  2. ComboBox : using select () to select the first item from the store.
    By nikhilkrishnan in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 29 Dec 2010, 2:49 AM
  3. How to auto select item in ComboBox
    By DavidHoffer in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 21 May 2010, 6:06 PM
  4. ComboBox - Select an Item or enter a new one
    By mette in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 16 Jan 2009, 8:24 AM
  5. ComboBox select first Item
    By pauleee in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 29 May 2008, 5:03 AM

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar