PDA

View Full Version : how to make onclick event...



extjsrrr
4 Nov 2008, 8:10 PM
Hi
i have written code for a combo box like the one enclosed.
There i have write a function for onclcik event. How to do... Pls help me...thanks in advance.

{
xtype : 'combo',
width : strWidth,
mode : 'local',
store : new Ext.data.SimpleStore({
fields : ['displayText','HiddenValue'],
data : objArr_StDBSerID
}),
id : 'DatabaseType',
editable : false,
displayField : 'displayText',
valueField : 'HiddenValue',
typeAhead : false,
triggerAction : 'all',
selectOnFocus : true,
listeners : {render : setSelectedIndex4,
change : setFlag4 }
}

ext_fan
4 Nov 2008, 9:36 PM
In combo you can attach "select" event listener which gets fired upon selecting any element....

extjsrrr
4 Nov 2008, 10:16 PM
thanks...
but, its not working for select:

its working for focus: