combo in editor with different listitems in treepanel

  1. #1

    combo in editor with different listitems in treepanel

    hi,
    I want to display combo with different values on different hierarchical level.
    Please see attachment.

    Please guide me.
    thanks in advance



    <ext:TreePanel ID="tree" Title="Organization Elements" runat="server" Region="East" Height="500" Width="700" 
                                    RootVisible="False" AutoScroll="True"  RowLines="True" NoLeafIcon="True">
                                    <Root>
                                        <ext:Node NodeID="0" Text="Root" />
                                    </Root>
                                    <Fields>
                                        <ext:ModelField Name="Element" />
                                        <ext:ModelField Name="Name" />
                                        <ext:ModelField Name="UnitId" />
                                        <ext:ModelField Name="Level" />
                                        <ext:ModelField Name="Permission" />
                                    </Fields>
                                    <ColumnModel>
                                        <Columns>
                                            <ext:TreeColumn ID="TreeColumn1" Width="200" runat="server" Text="Element" Sortable="true" DataIndex="Element">
                                            </ext:TreeColumn>
                                            <ext:Column runat="server" Width="200" Text="Name" Sortable="true" DataIndex="Name" />
                                            <ext:Column runat="server" Width="100" Text="UnitId" DataIndex="UnitId" Hidden="True" />
                                            <ext:Column runat="server" Width="100" Text="Level" DataIndex="Level" Hidden="True" />
                                            <ext:Column runat="server" ID="colPermission" Width="200" Text="Permission" DataIndex="Permission" Flex="1">
                                                <%--<Renderer Fn="permissionRenderer"></Renderer>--%>
                                                <%--<EditorRenderer Handler="" ></EditorRenderer>--%>
                                                <Editor>
                                                    <ext:ComboBox runat="server" ID="cbPermission"></ext:ComboBox>
                                                </Editor>
                                                <%--<Editor>
                                                    <ext:ComboBox runat="server" ID="cbUnitPermission" ValueField="RoleId" DisplayField="Description" RenderData="Description" StoreID="storeUnitPermission"></ext:ComboBox>
                                                    <ext:ComboBox runat="server" ID="cbFAPermission" ValueField="RoleId" DisplayField="Description" RenderData="Description" StoreID="storeFAPermission"></ext:ComboBox>
                                                </Editor>--%>
                                            </ext:Column>
                                        </Columns>
                                    </ColumnModel>
                                    <Plugins>
                                        <ext:CellEditing runat="server" ClicksToEdit="1">
                                            <Listeners>
                                                <BeforeEdit Handler="BeforeTreeEdit()"></BeforeEdit>
                                            </Listeners>
                                        </ext:CellEditing>
                                    </Plugins>
                                    
                                    <SelectionModel>
                                        <ext:TreeSelectionModel ID="TreeSelectionModel1" runat="server">
                                            <Listeners>
                                                <Select Handler="currentSelectedRows = this.store.getAt(index);TreeRowSelection(currentSelectedRows.data.Level);"></Select><%--IRX.SetPermissionStore(currentSelectedRows.data.Level);--%>
                                            </Listeners>
                                            <%--<DirectEvents>
                                                <Select OnEvent="GetSelectedNode" />
                                            </DirectEvents>--%>
                                        </ext:TreeSelectionModel>
                                    </SelectionModel>
                                    <Listeners>
                                        <ItemClick Handler="ItemClickHandler(item, record, node, index, e);"></ItemClick>
                                    </Listeners>
                                </ext:TreePanel>
    Attached Thumbnails TreePanel Editor.png  

Similar Threads

  1. Replies: 13
    Last Post: Dec 05, 2012, 7:55 AM
  2. Replies: 2
    Last Post: Aug 02, 2011, 4:05 PM
  3. [CLOSED] Combox Editor- Dynamic Combo box list Value
    By vali1993 in forum 1.x Premium Help
    Replies: 1
    Last Post: Aug 22, 2010, 9:02 PM
  4. Replies: 2
    Last Post: May 06, 2010, 12:33 PM
  5. Replies: 11
    Last Post: Mar 03, 2010, 6:46 AM

Tags for this Thread

Posting Permissions