Results 1 to 3 of 3

Thread: Grid cell editor combo selection (inputField and displayField not the same) issue

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Vote Rating

    Default Grid cell editor combo selection (inputField and displayField not the same) issue


    Ext version tested:
    • Ext 4.1.1

    Browser versions tested against:
    • Firefox 15.01

    Developer Skill Level:
    • Beginner ( < 4 months)

    • I have a grid with a store containing records for people, eg. {'name':'lisa','id':'01','email':''}.
    • The grid has columns that display the person's name and email.
    • I have an editor for the column cell that displays the person's name. This editor is a combobox.
    • I need to map the valueField (id) of the combobox with the id field in the grid's store's record and map the displayField of the combobox with the record's name field.
    • Problem: When I edit the cell by selecting a value from the combobox the cell renders the combobox's valueField value / the underlying id of the combo item.
    • I want to update the store's record with the person's id but display the person's name in the cell.
    • I looked aorund and I saw a solution for this for EXT 3 but none yet for 4+
    • \/ Perhaps something like this can be done for Ext4+ ?? \/
    • Any ideas? This is my first post to the forum so hope I have asked this in an appropriate format! Any links or suggestions are most welcome..

    Steps to reproduce the problem:

    The result that was expected:
    • In the example I would like to be able to edit a person's name by selecting a name from the combobox (editor of cell) but I would like the id in the record to map to the valueField of the combobox and the dataIndex / display of the cell to map to the displayField of the combobox, resulting in the cell displaying the displayField of the combobox but the id field behind the cell to have the valueField value from combobox.

    The result that occurs instead:
    • The valueField of the cell's editor combobox is displayed rather than the displayField.
    • I know you can change the valueField of the combobox to the person's name but I need to update the record in the grid with the new id but display the new name for the person.

    Test Case:
    • Please see "Steps to reproduce the problem"


    Additional CSS used:
    • only default ext-all.css

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Were you meaning to post this in the bugs forum?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Vote Rating


    Hi Mitchell,

    I was not sure if I was doing something wrong or if it is a bug with Ext. Since I am very new to Ext I put it into a general discussion forum so people could see if I have done something blatantly incorrect.

    Any feedback or support or even a link or two to some example that would get me closer to a solution would be appreciated.

    Best Regards,

Tags for this Thread

Posting Permissions

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