Pass DisplayField value from Combo to a second column in grid panel on select event

  1. #1

    Pass DisplayField value from Combo to a second column in grid panel on select event

    hi Folks,

    how can I pass a DisplayField value (FullId) from a Combo to a second column in grid panel on select, to the field Name(ma_name) in GridPanel, see attached pic ? THX a lot.

    Click image for larger version. 

Name:	crm_grid.JPG 
Views:	59 
Size:	27.0 KB 
ID:	4411

       <ext:GridPanel ID="GridPanel1" runat="server" Title="CRM - Mitarbeiterauslastung"
                                        StoreID="Store1" Border="false" ClicksToEdit="1" Icon="Clock">                                     
                                        <ColumnModel ID="ColumnModel1" runat="server">
                                            <Columns>                                   
                                                 <ext:Column ColumnID="sb_id" DataIndex="sb_id" Header="sb id MA (* alle anzeigen)" Width="230" >
                                                    <Editor>
                                                    <ext:ComboBox 
                                                            ID="ComboMAName"
                                                            runat="server" 
                                                            StoreID="Store2"
                                                            DisplayField="FullId" 
                                                            ValueField="Persid" 
                                                            TypeAhead="false"
                                                            LoadingText="Suchen" 
                                                            Width="230"
                                                            PageSize="10"
                                                            BlankText="*"
                                                            HideTrigger="true"                                                         
                                                            SelectOnFocus="true"                                                  
                                                            MinChars="1">  
                                                            <Listeners>
                                                             <Select Handler="" />
                                                            </Listeners>                                                                                                                                                                                                                                                                                                                                                         
                                                        </ext:ComboBox>   
                                                                                                                                                               
                                                    </Editor>
                                                    
                                                </ext:Column>  
                                                <ext:Column DataIndex="ma_name" Header="Name" ColumnID="ma_name" Hidden="false" Width="100">
                                                     
                                                </ext:Column>
  2. #2
    Hi,

    If you will change another column the ComboBox will lose the focus and editing will be stopped.

    I would suggest to use the GridPanel AfterEdit event to set up a value for the Name column. It is triggered when you blur the ComboBox.

Similar Threads

  1. Replies: 1
    Last Post: Dec 01, 2011, 11:34 AM
  2. Replies: 1
    Last Post: Nov 28, 2011, 2:40 PM
  3. Editable Grid Panel with Combo box column
    By jigpatel06 in forum 1.x Help
    Replies: 1
    Last Post: Nov 03, 2010, 8:06 PM
  4. [CLOSED] Load RadioGroup Item from database on Combo Select event
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 16, 2010, 8:30 PM
  5. Replies: 3
    Last Post: May 11, 2010, 10:36 AM

Posting Permissions