goldenka
21 Nov 2011, 5:59 AM
Hi,
I have problem with combo box select event. In ExtJs 3.0 there was no problem with accessing record's fields of the combo store, because the select function got 'record' and 'index' parameters.
function(combo, record, index) {
var field = record.data.field;
}
combo.on('select', function, this);
I want to do the same thing in ExtJs 4, but unfortunately select event's parameters are changed: now the function gets 'combo', 'records' and 'elOpts' parameters (no selectedIndex or selectedRecord). Now, the only solution I can see is to try using combo.getValue() and search whole combo store by this value, to find the selected record.
Thank you in advance!!
I have problem with combo box select event. In ExtJs 3.0 there was no problem with accessing record's fields of the combo store, because the select function got 'record' and 'index' parameters.
function(combo, record, index) {
var field = record.data.field;
}
combo.on('select', function, this);
I want to do the same thing in ExtJs 4, but unfortunately select event's parameters are changed: now the function gets 'combo', 'records' and 'elOpts' parameters (no selectedIndex or selectedRecord). Now, the only solution I can see is to try using combo.getValue() and search whole combo store by this value, to find the selected record.
Thank you in advance!!