PDA

View Full Version : Superboxselect - how make event?



dannyg
12 Jan 2010, 11:32 PM
i have superboxselect :



{
id:'superboxselect',
xtype:'superboxselect',
labelStyle: 'width:110px',
fieldLabel: 'Add file from Experiment (Optional) ',
typeAhead: true,
triggerAction: 'all',
emptyText: 'Choose from here',
resizable: true,
name: 'experiments2',
width:400,
store: store,
mode: 'remote',
displayField: 'name',
displayFieldTpl: '{name} ({code})',
valueField: 'code',
forceSelection : true

}
How if i want get the id and pass the id to one function when i select at least one of the superbox?

i use select:my_function(); but cannot work,because this is when the mouse roll over it. i wan when i click/select one from that superbox,when select two then run that function two times.

please help.