[CLOSED] Three state checkbox in tree panel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Three state checkbox in tree panel

    I have a treepanel and i want its nodes to set in three states: checked, unchecked and other (show hifen in checkbox).

    I have tried the link https://www.sencha.com/forum/showthr...kbox-and-radio, but its not working for me.

    Below is my code with treepanel:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testMessageBoxParent.aspx.cs" Inherits="DocDataUI.testMessageBoxParent" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <ext:ResourceManager ID="supportResourceManager" runat="server" DirectMethodNamespace="DM">
                </ext:ResourceManager>
                
                <ext:TreePanel ID="treeAdminProtocol" runat="server"
                    Title="Three state tree nodes" Frame="true"
                    UseArrows="true" AutoScroll="true"
                    Animate="true" RootVisible="false"
                    Layout="FitLayout" MarginSpec="15 15 0 15">
                    <Root>
                        <ext:Node Expanded="true">
                            <Children>
                                <ext:Node Text="Node 1" Expanded="true" Checked="true" NodeID="Node 1" Cls="parent">
                                    <Children>
                                        <ext:Node Text="Child 1" Checked="true" Cls="parent">
                                            <Children>
                                                <ext:Node Text="Sub Child 1" Leaf="true" Checked="true" />
                                                <ext:Node Text="Sub Child 2" Leaf="true" Checked="true" />
                                            </Children>
                                        </ext:Node>
                                        <ext:Node Text="Child 2" Leaf="true" Checked="true" Cls="parent" />
                                        <ext:Node Text="Child 3" Leaf="true" Checked="true" Cls="parent" />
                                        <ext:Node Text="Child 4" Leaf="true" Checked="true" Cls="parent" />
                                    </Children>
                                </ext:Node>
                            </Children>
                            <Children>
                                <ext:Node Text="Node 1" Expanded="true" Checked="true" NodeID="Node 2" Cls="parent">
                                    <Children>
                                        <ext:Node Text="Child 5" Leaf="true" Checked="true" Cls="parent" />
                                        <ext:Node Text="Child 6" Leaf="true" Checked="true" Cls="parent" />
                                    </Children>
                                </ext:Node>
                            </Children>
                            <Children>
                                <ext:Node Text="Node 3" Expanded="true" Checked="true" NodeID="Node 3" Cls="parent">
                                    <Children>
                                        <ext:Node Text="Child 7" Leaf="true" Checked="true" Cls="parent" />
                                        <ext:Node Text="Child 8" Leaf="true" Checked="true" Cls="parent" />
                                    </Children>
                                </ext:Node>
                            </Children>
                        </ext:Node>
                    </Root>
                </ext:TreePanel>
            </div>
        </form>
    </body>
    </html>
    Can you please help me in this.
    Last edited by fabricio.murta; Dec 01, 2017 at 5:58 PM.

Similar Threads

  1. [CLOSED] Drag and drop from tree panel to tree panel.
    By Prasoon in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 23, 2015, 5:57 PM
  2. [CLOSED] Save the Tree expanded Node state between sessions
    By Peter.Treier in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 02, 2013, 3:51 PM
  3. [CLOSED] CheckboxSelectionmodel Header Checkbox State
    By RCM in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 01, 2013, 5:32 PM
  4. [CLOSED] Nullable (three state) checkbox
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 25, 2010, 10:41 AM
  5. [CLOSED] Maintaining Tree State after Refresh
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 08, 2009, 6:57 PM

Tags for this Thread

Posting Permissions