Results 1 to 2 of 2

Thread: How should I get suggest under a textField

  1. #1
    Sencha User
    Join Date
    Jul 2009

    Default How should I get suggest under a textField

    Hi all,

    I have a textField. I want to get a search suggest just like google search. As so many data to be search, I want to get suggest below the textfield base on my input.

    So, below is my code. How should I add the dataView like combobox? I have no idea of the code in success. Please give me a hint! Thanks.

     var searchField = new Ext.form.TextField({
                emptyText: '',
                labelSeparator: '',
                listeners: {
                 render: function(f){
                  f.el.on('keydown', function(e){
                            var text =;
                 url: 'searchNumber.php?value='+text
                 success: function (r){
                     // ???? Here, how should I write the code for a suggest dropdownlist??
                 failure: function (r){
            }, f, { buffer: 350 });}}

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Hong Kong


    use ComboBox with hideTrigger: true conifg instead.

Posting Permissions

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