PDA

View Full Version : Ho to show glass icon in combo box



sandiptikole
24 May 2011, 12:33 PM
I am using combo box to search the contents in GrridPanel. I want to show the search icon or glass icon in the combo box?
var searchBox = new Ext.form.ComboBox({
store: this.summaryWidgetGrid.getStore(),
xtype:'textfield',
displayField:'CLIENT',
typeAhead: false,
stateful: true,
forceSelection:false,
mode: 'local',
stateId: 'searchBox',
loadingText: 'Searching...',
triggerAction: 'all',
width: 150,
emptyText: '<Search Client>',
minChars: 0,
lastQuery: '',
hideTrigger:true
});

kembuco
24 May 2011, 3:59 PM
Since it extends TriggerField, you could define triggerClass, and then define that css class with a background-image like they do in this example: http://dev.sencha.com/deploy/ext-3.3.1/examples/form/custom.html. Of course, the trigger will default on the right. Not sure where the screencap is from that you posted, but the source code might give some hints for that.