Sep 25, 2017, 2:44 PM
[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:
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.