-
28 Mar 2011 5:22 AM #1
[CLOSED] ComboBox select event acting weird
[CLOSED] ComboBox select event acting weird
Don't know if this is a bug but it looks like it:
If I add a select event listener to a combobox, the API docs say that the arguments should be Ext.form.Picker field, Mixed value but instead they appear to be like Ext 3: Ext.form.ComboBox combo, Ext.data.Record record, Number index.
Problem is, though, that none of them work. If I try to use record.get, an error is thrown:Code:var form = new Ext.form.FieldSet({ renderTo: 'select', defaultType: 'combo', items: [{ xtype: 'combo', hideLabel: true, emptyText: 'Select...', displayField: 'name', width: 200, store: store, queryMode: 'local', typeAhead: true, listeners: { 'select': function(combo,record){ console.log(record); //This is a record but I can interact with it (using get() for example) } } }] });
record.get is not a function
But if I look at the object in Firebug, there's indeed a method called get.
I'm puzzled
-
28 Mar 2011 6:06 AM #2
The picker supports multiple selections, so what looks at a glance like a record is actually an array of records. Try record[0].get().
Michael
-
28 Mar 2011 7:02 AM #3
Oh, silly me!
Thank you!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Combobox acting as ordinary select element
By Bensiu in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 30 Jan 2011, 9:59 AM -
[2.2][CLOSED] Combobox 'change' event fires diffently from "classic" select
By Tonio in forum Ext 2.x: BugsReplies: 4Last Post: 14 Aug 2008, 5:38 AM -
Html editor acting weird?
By carlocb in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 12 Feb 2008, 1:08 PM -
[2.0] Resizable examples acting weird in Opera
By Sadr in forum Ext 2.x: BugsReplies: 0Last Post: 19 Jan 2008, 9:08 AM -
[fix/bug] ComboBox select event should fire change event also
By andrei.neculau in forum Community DiscussionReplies: 1Last Post: 22 Sep 2007, 2:57 PM


Reply With Quote