[CLOSED] [1.0] ComboBox Custom Search

  1. #1

    [CLOSED] [1.0] ComboBox Custom Search

    I've implemented a custom search on the combobox as per the example at /#/Form/ComboBox/Custom_Search/

    Once a selection has been made from the search results, would it be possible to disable the ability to search and make the combobox text editable? This would then allow someone to search for a record, find it and then edit the display value field.

    I would then collect both the display value and the valuefield value to send back to the server.


  2. #2

    RE: [CLOSED] [1.0] ComboBox Custom Search


    Try the following listener for combo
    <Select Handler="this.expand = Ext.emptyFn;" />

    To restore ability to search
    ComboBox1.expand = Ext.form.ComboBox.prototype.expand;

    Regarding editing text and then submit text and value then it is impossible. You can edit text (ForceSelection="false" enable custom text) but you loose the value because text maps on value

    But you can try to save selected value into the hidden field (in the Select event handler)
  3. #3

    RE: [CLOSED] [1.0] ComboBox Custom Search

    Thanks Vladimir, that works perfectly. In the select, I save the underlying value in a variable so I can then pull it out later.


Similar Threads

  1. custom search in combobox
    By aditya.murthy88@gmail.com in forum 1.x Help
    Replies: 0
    Last Post: Feb 05, 2011, 9:57 AM
  2. [CLOSED] Custom Search Combobox
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 04, 2010, 8:29 PM
  3. [CLOSED] custom search get value of combobox
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 05, 2009, 6:25 PM
  4. ComboBox Custom Search Example
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Aug 15, 2009, 11:59 PM
  5. ComboBox Custom Search example
    By echo in forum 1.x Help
    Replies: 1
    Last Post: Jul 01, 2009, 2:27 PM

Posting Permissions