-
6 Jan 2011 12:35 AM #1
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:
Which loads and does the whole typeahead thing fine.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); } });
But when i try to select an item in the suggestions, it wont select it!
What am i doing wrong here?
-
6 Jan 2011 5:08 AM #2
i bet this is super simples to some extjs boffs out there!
-
7 Jan 2011 5:10 AM #3
-
7 Jan 2011 5:23 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
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).
-
7 Jan 2011 8:01 AM #5
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...
-
29 Jan 2011 8:00 AM #6
Hello there
Hello there
Hello there great to meet you. Really happy to come here[url=http://www.blurty.com/users/earwars]!
Similar Threads
-
How to manually select an item (combobox)
By Reghin in forum Ext GWT: DiscussionReplies: 9Last Post: 26 Jan 2012, 9:11 AM -
ComboBox : using select () to select the first item from the store.
By nikhilkrishnan in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 29 Dec 2010, 2:49 AM -
How to auto select item in ComboBox
By DavidHoffer in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 21 May 2010, 6:06 PM -
ComboBox - Select an Item or enter a new one
By mette in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 16 Jan 2009, 8:24 AM -
ComboBox select first Item
By pauleee in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 29 May 2008, 5:03 AM


Reply With Quote
