How to bind TreePanel value in DropDownField at GridPanel ?

  1. #1

    How to bind TreePanel value in DropDownField at GridPanel ?

    How to bind TreePanel value in DropDownField at GridPanel ?

    I don't know how to bind DropDownField value in GridPanel, it can get value use Ext.encode(#{GridData}.getRowsValues, how do I do ?
  2. #2
    <ext:ComponentColumn
                                    runat="server"
                                    Editor="true"
                                    DataIndex="DEPT_ID"
                                    Text="管理机构" Width="200">
                                    <Component>
                                        <ext:DropDownField ID="DeptId" runat="server" AllowBlank="false"
                                            Editable="false" Mode="ValueText">
                                            <Component>
                                                <ext:TreePanel ID="DeptTree" runat="server" UseArrows="true" AutoScroll="true" ContainerScroll="true" Height="250">
                                                    <Listeners>
                                                        <Select Handler="this.dropDownField.setValue(record.data.id, record.data.text);" />
                                                    </Listeners>
                                                </ext:TreePanel>
                                            </Component>
                                            <Listeners>
                                                <Expand Handler="this.component.getRootNode().expand(true);" Single="true" Delay="10" />
                                                <Render Handler="item.setValue(item.record.data.DEPT_ID, item.record.data.DEPT_ID);return 'fsss'"></Render>
                                            </Listeners>
                                        </ext:DropDownField>
                                    </Component>
                                    <Renderer Fn="translate"></Renderer>
                                </ext:ComponentColumn>
    Is there some one know ?

Similar Threads

  1. [CLOSED] DataIndex on DropDownField with a TreePanel
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 18, 2011, 9:42 AM
  2. Replies: 9
    Last Post: Jul 18, 2011, 7:55 AM
  3. [CLOSED] TreePanel in a DropDownField - SetValue
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 04, 2011, 2:12 PM
  4. [CLOSED] the dropdownfield with TreePanel don't display in ie7
    By lonely7345 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 04, 2011, 3:04 AM
  5. [CLOSED] DropDownfield TreePanel Click Listener
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 26, 2009, 3:56 AM

Posting Permissions