Hi, I've a combox with force selection to false, I need two different actions if combo value comes from selection or not.
Any suggest?
Filippo
Hi, I've a combox with force selection to false, I need two different actions if combo value comes from selection or not.
Any suggest?
Filippo
A selection *must* exist in the store which is bound to the combobox, so you should be able to use the findRecordByValue() method of the combobox itself: http://docs.sencha.com/extjs/4.2.1/#...dRecordByValue
If it returns a record, you know you've found a record in the combobox list's store that matches the current value of the combobox. If it returns false, you know you have a non-record bound value.
A selection *must* exist in the store which is bound to the combobox, so you should be able to use the findRecordByValue() method of the combobox itself: http://docs.sencha.com/extjs/4.2.1/#...dRecordByValue
If it returns a record, you know you've found a record in the combobox list's store that matches the current value of the combobox. If it returns false, you know you have a non-record bound value.
Before pasting your code, see if you can make a working example using Sencha Fiddle: https://fiddle.sencha.com/
Not only will it let everyone see what you're talking about with their own eyes, but it also makes debugging your issue 19 billion times easier
Embedding your newly created Fiddle is super-easy: Using Sencha Fiddle in the Forums
Or simpler - check combo.valueModels.