pludikhu
27 Dec 2009, 1:01 AM
What's so wrong with this that it doesn't work in IE 7 or IE8 compat and does in IE6, IE8 and other browsers like FF, Safari and Opera?
Problem: when selecting, nothing seems to happen, already selected item is unselected but selecting new items, either one or several, don't highlight and on change event is not fired.
var fld = new Ext.ux.form.MultiSelect({
allowBlank:false,
autoHeight: true,
displayField:'descr',
emptyText:'Select...',
mode: 'local',
selectOnFocus:true,
store: new Ext.data.ArrayStore({
fields: ['id', 'descr'],
data : [[1,'Descr 1'],[2,'Descr 2'],[3,'Descr 3']]
}),
tabIndex: 2,
triggerAction: 'all',
valueField: 'id',
value: 1,
width:'100%'
});
fld.on({
change: function(combo, record, index){
Ext.Ajax.request({
url: rvUrl,
params: { kledij: combo.getValue() },
success: successFn,
failure: failureFn
});
}
});
fld.render('mycombo');
I correctly referenced MultiSelect.js en .css, just like in the multiselect-demo.html example.
Must have forgotten something but ...
Any suggestion/help greatly appreciated!
Patrick
Problem: when selecting, nothing seems to happen, already selected item is unselected but selecting new items, either one or several, don't highlight and on change event is not fired.
var fld = new Ext.ux.form.MultiSelect({
allowBlank:false,
autoHeight: true,
displayField:'descr',
emptyText:'Select...',
mode: 'local',
selectOnFocus:true,
store: new Ext.data.ArrayStore({
fields: ['id', 'descr'],
data : [[1,'Descr 1'],[2,'Descr 2'],[3,'Descr 3']]
}),
tabIndex: 2,
triggerAction: 'all',
valueField: 'id',
value: 1,
width:'100%'
});
fld.on({
change: function(combo, record, index){
Ext.Ajax.request({
url: rvUrl,
params: { kledij: combo.getValue() },
success: successFn,
failure: failureFn
});
}
});
fld.render('mycombo');
I correctly referenced MultiSelect.js en .css, just like in the multiselect-demo.html example.
Must have forgotten something but ...
Any suggestion/help greatly appreciated!
Patrick