[CLOSED] How to change GridPanel TextField value when DropDownField selected

  1. #1

    [CLOSED] How to change GridPanel TextField value when DropDownField selected

    Dear :

    when DropDownField2 selected value ; I want to chagne TextField:Fd_TXT22 value
    The value flowing store2 record ( DropDownField2 selected )
    How to do ??


    ....
    <ext:GridPanel ID="GridPanel1"  runat="server"   StoreID="Store1"  Border="false"  Icon="Lorry" LabelWidth="00">
    <ColumnModel ID="ColumnModel1" runat="server">
        <ext:Column Header="TXT31"" DataIndex="TXT31" Width="200">
            <Editor>
            <ext:DropDownField ID="DropDownField2" runat="server" Editable="false" Width="170" TriggerIcon="SimpleArrowDown">
            <Component>
             <ext:GridPanel ID="GridPanel3" runat="server"  Height="350"  AutoExpandColumn="TXT02"  Frame="true"  StoreID="Store2">
                <ColumnModel ID="ColumnModel3" runat="server">
                <Columns>
                   <ext:Column ColumnID="TXT02" Header="TXT02" DataIndex="TXT02" Width="180" />
                   <ext:CommandColumn Width="30">
                       <Commands>
                          <ext:GridCommand Icon="Accept" CommandName="Pick"></ext:GridCommand>
                      </Commands>
                   </ext:CommandColumn>
                </Columns>
            </ColumnModel>
            <Listeners>
                 <Command Handler="this.dropDownField.setValue(record.data.TXT02);"></Command>
            </Listeners>
            <LoadMask ShowMask="True"></LoadMask>
            <SelectionModel>
                  <ext:RowSelectionModel ID="RowSelectionModel3" runat="server" />
            </SelectionModel>
            </ext:GridPanel>
            </Component>
             </ext:DropDownField>
             </Editor>
           </ext:Column>
    
      <ext:Column ColumnID="TXT22"  DataIndex="TXT22"  Header="TXT22">
           <Editor>
       <ext:TextField ID="Fd_TXT22" runat="server" MaxLength="20" />
           </Editor>
         </ext:Column>
    ....
    Last edited by Daniil; Jul 04, 2012 at 11:17 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    That kind of scenario is too tricky to implement.

    Please clarify do you use the EditableGrid plugin? If yes, please follow this thread, there was the same request.
    http://forums.ext.net/showthread.php?17924

Similar Threads

  1. Replies: 2
    Last Post: Jun 10, 2014, 3:17 AM
  2. Replies: 0
    Last Post: May 21, 2012, 2:02 AM
  3. Replies: 1
    Last Post: Mar 26, 2012, 9:11 PM
  4. Replies: 7
    Last Post: Nov 25, 2010, 4:18 PM
  5. Replies: 2
    Last Post: Nov 15, 2010, 12:13 PM

Tags for this Thread

Posting Permissions