hi there,
i'm having a trouble in radtreeview, and i'm so confused about it.
i'm using radtreeview to load data from SQL DB, and checkbox involves.
i have three level of employee (it mean i have 3 level of nodes) and i display all employees on my radtreeview,
i want to click to checkboxes to select employees id, then insert into my DB.
but, when i click to my employees's level 3, ( it mean : this node at 3th level )
i can not refer to parent of this node ( refer to manager of this employee ) to select value of node.
can you help me to resolve this proplem.
thanks,
ps: best regards.
this is my code :
AspTree.aspx
--
--
AspTree.aspx.cs
----
-----
i'm having a trouble in radtreeview, and i'm so confused about it.
i'm using radtreeview to load data from SQL DB, and checkbox involves.
i have three level of employee (it mean i have 3 level of nodes) and i display all employees on my radtreeview,
i want to click to checkboxes to select employees id, then insert into my DB.
but, when i click to my employees's level 3, ( it mean : this node at 3th level )
i can not refer to parent of this node ( refer to manager of this employee ) to select value of node.
can you help me to resolve this proplem.
thanks,
ps: best regards.
this is my code :
AspTree.aspx
--
<
div class="center" style="width:500px; height:auto; float:left;">
<br />
<radt:radtreeview id="RadTreeView1" runat="server" CheckBoxes="True"
OnNodeClick="NodeClick"
OnNodeCheck="RadTreeView1_NodeCheck" AfterClientCheck="AfterCheck"
></radt:radtreeview>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text=" Cp Nht " />
</div>
--
AspTree.aspx.cs
----
RadTreeNode
parentNode = node.Parent;
string PNode = parentNode.Value;
#region
comment
if (RadTreeView1.Nodes.FindNodeByValue(PNode).Checked)
{
// do something if parent node checked.
-----