PDA

View Full Version : Combobox MouseOver Event



swhitlow
27 Nov 2007, 9:17 AM
Hello - I have a small problem. I have the Mouseover event working to update a div tag's inner html as it hovers over the list of a Combobox.

However, I cannot figure out how to return the actual list item's value. Could someone here help me out a little? I have searched and searched the forums and found a few hints here and there but nothing solid.

Thanks!

Here is the code I have so far. Right now it just populates the div tag with the counter so I know it's working:
Ext.onReady(function(){
var count = 0;
var converted = new Ext.form.ComboBox({
typeAhead: true,
grow: true,
editable:false,
title:'Choose One:',
loadingText:'Loading Data...',
triggerAction: 'all',
transform:'discharge_transitions',
width:235,
forceSelection:true
});

converted.innerList.on('mouseover', function(e, item,value){
count ++;
document.getElementById('details').innerHTML = "Item: " + count;
});

});