View Full Version : Combobox with partial string
jrroberts
7 Sep 2007, 10:48 AM
Is it possible to use the combobox control with partial string entry? So if my select list contains the values Josh, Sam, Mary and the user inputs 's', Josh and Sam are returned in the list.
Thanks
Josh
Never used it, but this might do what you want:
http://extjs.com/deploy/ext/docs/output/Ext.form.ComboBox.html#doQuery
jrroberts
10 Sep 2007, 7:15 AM
I have been trying unsuccessfully to get doQuery to work in tis way. Does anyone have an example of this?
BTW, here is my code:
Ext.onReady(function(){
var converted = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'cbDetailUnitId',
minListWidth: 440,
minChars: 0,
width: 440,
forceSelection:true,
title: 'Please select one',
resizable:true,
allowBlank:true
});
converted.on('beforequery', function() {
converted.doQuery(converted.getValue(), true)
});
});
Thanks
Josh
jrroberts
10 Sep 2007, 8:42 AM
BTW, I found the answer to my question here (http://extjs.com/forum/showthread.php?t=4684)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.