[CLOSED] How to show ComboBox's current text in grid's cell with editor function

  1. #1

    [CLOSED] How to show ComboBox's current text in grid's cell with editor function

    Hi,

    I have a case:

    <ext:Column ColumnID="Type" DataIndex="Type" Header="Value">
        <Editor>
            <ext:ComboBox ID="cmbType" runat="server" Editable="true" >
                <Items>
                    <ext:ListItem Value="Text" Text="Text"/>
                    <ext:ListItem Value="Integer" Text="List Item ID"/>
                    <ext:ListItem Value="DateTime" Text="Date and Time"/>
                    <ext:ListItem Value="Boolean" Text="Yes/No"/>
                    <ext:ListItem Value="Long" Text="Action ID"/>
                    <ext:ListItem Value="ArrayList" Text="Collection"/>
                    <ext:ListItem Value="Number" Text="Number" />
                </Items>
            </ext:ComboBox>
        </Editor>
    </ext:Column>
    The cell editable function is fine, but cell's display-text is ListItem's value after ComboBox's item is changed, actually I want to show ListItem's Text.
    I know using Store for ComboBox works fine. In my case how can I do?

  2. #2

    RE: [CLOSED] How to show ComboBox's current text in grid's cell with editor function

    Hi,

    Please note that Combo has a store in any case (even if you define inner items). You can get the store reference using
    js code


    combo1.store

    Please see the following example which shows how to display text instead value


    https://examples1.ext.net/#/GridPane...Field_Mapping/

Similar Threads

  1. Replies: 11
    Last Post: Feb 29, 2012, 3:57 PM
  2. Replies: 1
    Last Post: Sep 24, 2011, 10:52 PM
  3. [CLOSED] ComboBox Editor in Grid reverts selected to VALUE , not TEXT
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 10, 2011, 3:00 PM
  4. Editor text and combobox
    By threewonders in forum 1.x Help
    Replies: 1
    Last Post: May 21, 2011, 11:25 AM
  5. Replies: 3
    Last Post: Sep 16, 2008, 3:50 PM

Posting Permissions