Editable Grid Panel with Combo box column

  1. #1

    Editable Grid Panel with Combo box column

    Hi,

    Hi,

    I am working with Editable Grid. One column of Grid has combo box (drop down). After Row edit, Grid should display the Display Field value while still store ValueField value of Combo box somewhere?

    AS of now, when I select any value from Dropdown and I move to other field of grid, grid column shows value field of Drop down and not the DisplayField. Please suggest the sulution. Find below my code.

            <ext:Store ID="Store2" runat="server">
                <Reader>            
                    <ext:JsonReader>
                        <Fields>
                            <ext:RecordField Name="ManagerID" />
                            <ext:RecordField Name="ManagerName" />
                        </Fields>
                    </ext:JsonReader>
                </Reader>            
            </ext:Store>
    
    <!--In Grid-->
    <ext:Column ColumnID="Name" Header="Manager" DataIndex="Manager">
        <Editor>        
            <ext:ComboBox ID="cbActMgr" runat="server" DisplayField="ManagerName" ValueField="ManagerID" StoreID="Store2"   />
        </Editor>
    </ext:Column>
    Thanks in advance.
    Jigpatel.
    Last edited by Daniil; Nov 03, 2010 at 8:04 PM. Reason: Removed space in [ /CODE]
  2. #2
    Hi,

    I guess there should be a respective Renderer.

    Please investigate this example.
    https://examples1.ext.net/#/GridPane...Field_Mapping/

Similar Threads

  1. Replies: 1
    Last Post: Jun 28, 2012, 9:39 PM
  2. [CLOSED] Editable column on grid: how to raise an event for saving
    By digitek in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 13, 2012, 11:02 AM
  3. Replies: 0
    Last Post: Jun 15, 2011, 5:40 AM
  4. Replies: 3
    Last Post: Jun 03, 2011, 12:10 PM
  5. Replies: 1
    Last Post: Jun 16, 2009, 12:28 PM

Posting Permissions