How to resolve an item when a focus is lost?
Hi,
I would like to resolve an item when I type it and then move cursor to the different part of the product (lost focus). I tried to use "onBlur" method, which works fine almost in all cases. But it also executed when a list is shown and I select any item. So when I select an item, "onBlur" is first, then "onSelect". That causes two items are shown: the partially typed and the selected one. The question how can I distinguish this sort of losing focus from others.
Thanks a lot,
Irina
want to extend the select event
Hi
A very useful and great extension for Extjs.
I have a question related to the select event.
I want to create two instances of this class, but i want them to behave different when an item is selected and not erase the code in the Ext.ux.BoxSelect class. In other words, i want to extend the response for the select event.
How can i do this?
Thanks in advance
Bug if you set allowBlank:false
If you set allowBlank:false, as soon as you remove an item it sets the field to invalid, even if there are still others items.
PHP Code:
var emailTo = new Ext.ux.BoxSelect({
fieldLabel: 'To',
labelStyle: 'font-weight:bold; width:30;',
resizable: true,
name: 'to[]',
anchor:'95%',
store: emailDS,
mode: 'local',
displayField: 'userName',
displayFieldTpl: '{userName} ({email})',
valueField: 'email',
addUniqueValues: false,
allowBlank:false
});
After more testing it seems that if you add allowBlank:false, it will always be invalid on blur, regardless of items selected.