[CLOSED] Looking for the right ComboBox Event

  1. #1

    [CLOSED] Looking for the right ComboBox Event

    Hi all

    I have here my own implementation of the Custom Search Example.
    Now I need to set the ComboBox Text after the Search Result has been selected...

    Let me describe my need with your 'Customs Search' Example :

    • You type 'Ad'
    • The Results are shown in the ComboBox pop-out Grid
    • You select : 'Adder's-Tongue'
    • The ComboBox Text is now 'Adder's-Tongue'


    I need to Show

    • 'Adder's-Tongue - Erythronium americanum'


    Any Idea how to get this ?

    Peter
    Last edited by Daniil; Apr 02, 2013 at 4:12 AM. Reason: [CLOSED]
  2. #2
    Hi Peter,

    A ModelField which you use as a ComboBox's DisplayField should contain it.

    The following should work for our example.

    1. Set up a new ModelField.
    <ext:ModelField Name="CommonAndBotanical">
        <Convert Handler="return record.get('Common') + ' ' + record.get('Botanical');" />
    </ext:ModelField>
    2. Set up this ModelField as the ComboBox's DisplayField.
    DisplayField="CommonAndBotanical"

Similar Threads

  1. Need help for Combobox paging event
    By phancongphuoc in forum 1.x Help
    Replies: 5
    Last Post: Apr 19, 2012, 2:29 PM
  2. ComboBox TriggerClicked event not fire!
    By rendongsc in forum 1.x Help
    Replies: 2
    Last Post: Mar 30, 2012, 12:29 AM
  3. Fire click event on a combobox
    By mojo in forum 1.x Help
    Replies: 1
    Last Post: Dec 13, 2010, 3:25 PM
  4. fire combobox's change event
    By jachnicky in forum 1.x Help
    Replies: 2
    Last Post: Dec 06, 2010, 4:33 PM
  5. fire keyup event for combobox
    By daniel in forum 1.x Help
    Replies: 3
    Last Post: May 21, 2009, 12:20 AM

Posting Permissions