Results 1 to 3 of 3

Thread: Not able to set the Max limit of combobox

  1. #1

    Default Not able to set the Max limit of combobox

    Hi,
    can any one knows how to set the maximum character input for combobox , i need to set the maximum character input for combobox to 75 .Below is the combobox

    var searchFieldCombo = new Ext.form.ComboBox( {
    id : 'address',
    name : 'address',
    maxLength:'75',
    store : searchFieldStore,
    mode : 'remote',
    displayField : 'name',
    valueField : 'id',
    iconClsField: 'icon_airplane',
    cls:'destHlpTxt',
    listClass:'suggestiveTxt',
    plugins:new Ext.ux.plugins.IconCombo(),
    minChars:'3',
    height : 26,
    width:365,
    hideTrigger : true,
    tabIndex:'2',
    emptyText : 'Enter City, Address, Airport, Point of Interest',
    forceSelection : false,
    selectOnFocus : true,
    triggerAction : 'all'
    });

    Thanks

  2. #2
    Ext User Corso's Avatar
    Join Date
    Aug 2008
    Location
    Germany
    Posts
    22

    Default

    To make a guess, you used a String not a Number.

  3. #3

    Default maximum number of input characters in combobox

    I had tried both ways but still its not working

    var searchFieldCombo = new Ext.form.ComboBox( {
    id : 'address',
    name : 'address',
    maxLength:75,
    store : searchFieldStore,
    mode : 'remote',
    displayField : 'name',
    valueField : 'id',
    iconClsField: 'icon_airplane',
    cls:'destHlpTxt',
    listClass:'suggestiveTxt',
    plugins:new Ext.ux.plugins.IconCombo(),
    minChars:'3',
    height : 26,
    width:365,
    hideTrigger : true,
    tabIndex:'2',
    emptyText : 'Enter City, Address, Airport, Point of Interest',
    forceSelection : false,
    selectOnFocus : true,
    triggerAction : 'all'
    });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •