-
19 Jan 2011 2:19 AM #371
Resizable not working
Resizable not working
I am using extjs version 3.3.1 I would like to use the resizable property but it does not work. I want to have resizable: true. For this to work I have to change in SuperBoxSelect.js resizable : false to resizable : true , it seems this property is ignored when the combobox xtype is superboxselect
code in SuperBoxSelect.js
initComponent:function() {
Ext.apply(this, {
items : new Ext.util.MixedCollection(false),
usedRecords : new Ext.util.MixedCollection(false),
addedRecords : [],
remoteLookup : [],
hideTrigger : true,
grow : false,
resizable : true,
multiSelectMode : false,
preRenderValue : null
});
My code:
{
columnWidth:.28,
layout: 'form',
items:
[
{
xtype:'superboxselect',
fieldLabel: 'Auth',
name: 'drugauth',
mode: 'local',
typeAhead: true,
forceSelection: true,
editable: false,
triggerAction : 'all',
store: drugauthstore,
displayField:'DrugAuthority',
valueField: 'DrugAuthorityID',
hiddenName: 'drugauthID[]',
resizable: true,
navigateItemsWithTab: false,
removeValuesFromStore: false,
preventDuplicates: false,
stackItems: true,
//allowBlank:false,
anchor: '100%'
}
]
}
Thanks,
Ivan
-
23 Feb 2011 6:55 AM #372
I managed to solve (I think) the z-index problem in my case. I just added a listClass property to the component (it's inherited from ComboBox), being the definition of the css class:
Obviusly it isn't the best solution, but it worked for me.Code:mySuperComboListClass { z-index: 9999!important; }
Hope it helps.
Thanks a lot for this amazing extension!
-
2 Mar 2011 10:28 AM #373
Shift + Click Support
Shift + Click Support
Has anyone figured out how to add /enable support for using Shift + Click to select groups of multiple items?
-
3 Mar 2011 11:35 AM #374
how do I get the selected items corresponding records ? seems like the selected items are removed from the combobox store !

-
3 Mar 2011 4:07 PM #375
-
8 Mar 2011 1:11 PM #376
Does this still work? I'm using Extjs3.2.
I get an error when hovering on this statement:
var rec = sbs1.findSelectedRecord(tip.triggerElement);
Errors with sbs1.findSelectedRecord is not a function.Frank R.
-
8 Mar 2011 9:14 PM #377
Select Event
Select Event
It seems there is no Select event like there is in a standard Combobox.
I want to use the selected record data when it is selected in the list. This works fine with the standard Combobox.
Is there an event that fires when I click on an item in the list and if not can superboxselect be extended to have one?
I added this line of code from Extjs Combo.js under the onSelect
this.fireEvent('select', this, record, index);
And added it to the onSelect of SuperBoxSelect.js
onSelect : function(record, index) {
if (this.fireEvent('beforeselect', this, record, index) !== false){
var val = record.data[this.valueField];
if(this.preventDuplicates && this.hasValue(val)){
return;
}
this.setRawValue('');
this.lastSelectionText = '';
if(this.fireEvent('beforeadditem',this,val) !== false){
this.addRecord(record);
//next line added, it is taken from the standard combobox code
this.fireEvent('select', this, record, index);
}
if(this.store.getCount() === 0 || !this.multiSelectMode){
this.collapse();
}else{
this.restrictHeight();
}
}
},
I don't know if this is the right way to do it, but the Select event now fires.
Thanks,
Ivan
-
10 Mar 2011 6:09 PM #378
hi frnds
hi frnds
how can i have country flags in front of country names ,in superboxselect control pls help me in this
-
13 Apr 2011 6:19 PM #379
I am getting this.el is undefined error on line 681 of SuperBoxSelect.js
I defined a variable superCombo and assign the super combo object to this variable. I then use the superCombo variable as an item in a fieldset.
Anyone run into a similar problem or know what I am doing wrong.Code:var superCombo = { xtype: 'superboxselect', id: 'suppliercombo', name: 'supplier', hiddenName: 'supplier.id', allowBlank: true, msgTarget: 'under', fieldLabel: 'Supplier', emptyText: 'Select supplier', resizable: true, anchor: '100%', store: supplierStore, mode: 'local', displayField: 'name', valueField: 'id', extraItemCls: 'x-tag'};
-
13 Apr 2011 6:56 PM #380


Reply With Quote
