Hybrid View
-
31 Mar 2010 7:02 AM #1
Question about combobox config in designer
Question about combobox config in designer
Is it possible to specify the following code config in designer.
Code:var City = new Ext.form.ComboBox({ emptyText: "Please enter City", fieldLabel: "City", name: "City", hiddenName: "City", valueField: "ID", displayField: "City", editable: false, mode: "local", triggerAction: "all", anchor: "95%", store: new Ext.data.Store({ reader: new Ext.data.JsonReader({ root: "City", id: "ID" }, ["ID", "City"]) }) });
-
31 Mar 2010 7:21 AM #2
The following configurations are missing for ComboBox.
valueField, displayField, editable, triggerAction
Thanks for the quick test, we'll get these in the next version and yes this entire thing could be done via the designer.Aaron Conran
@aconran
Sencha Architect Development Team
-
31 Mar 2010 7:32 AM #3
Thanks. Any possibility to reset the trial period, 1.0.0.5 is the first working revision on my machine.
-
31 Mar 2010 7:55 AM #4
Yes, take a look at your PM inbox.
Aaron Conran
@aconran
Sencha Architect Development Team
-
1 Apr 2010 7:34 AM #5
Is possible to resize the combobox using ext designer?
-
1 Apr 2010 11:37 AM #6
Yes, ComboBox's are width resizable (not height resizable) under the following restrictions.
- Not used in an anchor/form layout
- not used in a fit layout
- Not within an EditorGrid Column
Aaron Conran
@aconran
Sencha Architect Development Team
-
3 Apr 2010 10:17 AM #7
-
3 Apr 2010 11:12 AM #8
Mango -
After creating a store on the stores tab, you can link the store to the combobox.
The generated code will use the storeId of the store and link it to the ComboBox through that method.Aaron Conran
@aconran
Sencha Architect Development Team
-
7 Apr 2010 6:09 AM #9
One more on comboboxes... does Designer will support 'listeners' and onSelect?
A configuration like this will be managed by designer?
A suggestion how manage what you "don't want to manage" with designer, the ability to add a custom piece of code in the configuration of an element a key->value entry that the designer simply record and print in the exported files.Code:searchChiamanti = new Ext.form.ComboBox({ fieldLabel: 'Chiamante', id: 'nome_chiamante', name: 'nome_chiamante', allowBlank: false, minLenght: 3, maxlenght: 50, store: dsChiamanti, displayField:'chiamante', valueField: 'chiamante', //typeAhead: false, loadingText: 'Ricerca in corso...', anchor:'95%', hideTrigger:true, triggerAction: 'all', tpl: resultTplChiamanti, itemSelector: 'div.combo-result-item', listeners: { 'focus': function() { do something... }, 'click': function() { do something... }, 'blur': function() { do something... } }, onSelect: function(record){ do something more... } });
Something like:
| key | value |
| listeners | 'the js/extjs code I want to assign to the listeners section...' |
This method gives to Designer a little IDE support for basic action based on element.
Very sorry for my english but I want to give you my contribution too.
Regards
-
7 Apr 2010 7:25 AM #10
I've read only now this:
Could you tell me the way to do this?Code:* This file was generated by Ext Designer version 1.0.0. * http://www.extjs.com/products/designer/ * * This file will be generated the first time you export. * * You should implement event handling and custom methods in this * class. */ ChiamateViewport = Ext.extend(ChiamateViewportUi, { initComponent: function() { ChiamateViewport.superclass.initComponent.call(this); } });
In my element ChiamateViewport I've all my sub elements, one is my combobox and I want to "attach" listeners and onLoad actions...
This is the generated script in the .ui.js file:
Code:... { xtype: 'combo', fieldLabel: 'Chiamante', anchor: '100%', tabIndex: 1, allowBlank: false, loadingText: false, mode: 'remote', store: 'store-chiamanti', emptyText: 'Cerca Chiamante...', selectOnFocus: true, id: 'ricerca-chiamante' } ...


Reply With Quote