I have following radtreeview defined
<telerik:RadTreeView ID="tvGroups" runat="server" TriStateCheckBoxes="true" CheckBoxes="true" OnClientNodeChecked="nodeChecked" >
</telerik:RadTreeView>
On the server I have the following code.
foreach (RadTreeNode node in tvGroups.CheckedNodes)
{
Trace.Warn("Value: " + node.Value + ":: Text: " + node.Text +" :: Checked: " + node.Checked.ToString() + ":: CheckedState: " + node.CheckState.ToString());
if (node.CheckState == TreeNodeCheckState.Checked)
{
//Do something only if the Checkbox is checked.
//Ignore if its indeteminate.
}
}
The problem is that the CheckState is always Unchecked. I am not sure what I am doing wrong.
THanks
<telerik:RadTreeView ID="tvGroups" runat="server" TriStateCheckBoxes="true" CheckBoxes="true" OnClientNodeChecked="nodeChecked" >
</telerik:RadTreeView>
On the server I have the following code.
foreach (RadTreeNode node in tvGroups.CheckedNodes)
{
Trace.Warn("Value: " + node.Value + ":: Text: " + node.Text +" :: Checked: " + node.Checked.ToString() + ":: CheckedState: " + node.CheckState.ToString());
if (node.CheckState == TreeNodeCheckState.Checked)
{
//Do something only if the Checkbox is checked.
//Ignore if its indeteminate.
}
}
The problem is that the CheckState is always Unchecked. I am not sure what I am doing wrong.
THanks